From 194ca2462c84c2a011039ac27e93f48b8b31bd4c Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Thu, 27 Jun 2013 11:41:24 -0700 Subject: [PATCH] Document --type=rawlog in pqd (bug 1171968). --- bin/pt-query-digest | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bin/pt-query-digest b/bin/pt-query-digest index 14d37d8f..1acfa08f 100755 --- a/bin/pt-query-digest +++ b/bin/pt-query-digest @@ -16072,6 +16072,23 @@ database. Server-side prepared statements are supported. SSL-encrypted traffic cannot be inspected and decoded. +=item rawlog + +Raw logs are not MySQL logs but simple text files with one SQL statement +per line, like: + + SELECT c FROM t WHERE id=1 + /* Hello, world! */ SELECT * FROM t2 LIMIT 1 + INSERT INTO t (a, b) VALUES ('foo', 'bar') + INSERT INTO t SELECT * FROM monkeys + +Since raw logs do not have any metrics, many options and features of +pt-query-digest do not work with them. + +One use case for raw logs is ranking queries by count when the only +information available is a list of queries, from polling C +for example. + =back =item --until