From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "JGuillaume \(ioguix\) de Rorthais *EXTERN*" <ioguix(at)free(dot)fr> |
Cc: | "Chris Ernst *EXTERN*" <cernst(at)esoft(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Extracting SQL from logs in a usable format |
Date: | 2009-12-20 15:53:37 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C203A8991D@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
JGuillaume (ioguix) de Rorthais wrote:
>> I am currently developing such a beast, it is currently still quite
>> alpha. If you are interested I can send you a copy. I'll try to
>> publish it once it is sufficiently beta.
>
> Interesting project, but but I have one big issue under 8.1 and
> advanced query (prepare / bind / execute): we cannot extract values of
> parameters from the logs with <8.2. So I am not able to parse /
> rebuilt query from logs under 8.1.
Hmm, that doesn't bother me. 8.1 is pretty old now, and who knows when
my program will be stable :^)
> I started something as well, based on tcpdump/tshark output (tshark
> - -VT text ...). My project is in pre-alpha step, but at least I can
> extract both simple queries and advanced queries w/ params. The only
> known limitations with this approach are :
> - cannot extract from SSL connections
> - ISTM tshark only support PostgreSQL V3 protocol. So only work on
> > 7.2 IIRC
I guess each approach has some limitations.
The limitations I encountered for log parsing:
- COPY data are not logged.
- Fast Path API calls are not logged (that includes large object functions).
- Unless you have log_min_messages at DEBUG2 or better, you cannot
determine when exactly a prepared statement was parsed.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Larry Anderson | 2009-12-20 15:56:47 | Re: Transaction started test |
Previous Message | Lincoln Yeoh | 2009-12-20 15:04:57 | Re: Justifying a PG over MySQL approach to a project |