Re: [HACKERS] Logging - events supported - Mailing list pgsql-hackers

From Ben Bennett
Subject Re: [HACKERS] Logging - events supported
Date
Msg-id 19991025073902.A31645@ayup.limey.net
Whole thread Raw
In response to Re: [HACKERS] Logging - events supported  (Tim Holloway <mtsinc@southeast.net>)
List pgsql-hackers
Not sure if I missed something, but it would be nice to be able to log
performance information such as "query 'XYZ' performed a table scan on
a 3,000,000 row table", "query 'XYZ' took 3000 seconds to complete",
"query 'XYZ' forced a sort of a 4,000,000 row table", etc. where the
thresholds could be set by the administrator.  This would allow you to
periodically audit your server to make sure that there were sufficient
indices and that users/programmers were not writing really bad
queries.

Although I am not sure how difficult adding this to the backend is but
I would love to be able to hook a tool onto the logfile and see what
bad queries were being run while I ran an appliation against the
server.  This is especially useful if my application allows dynamic
queries.
    -ben


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?