Trace for postgreSQL
Trace for postgreSQL
От:
beyaNet Consultancy <beyanet@ntlworld.com>
Дата:
Hi, can anyone tell me whether there is a trace facility (application) available for postgreSQL version 7.4.1 which will enable me to see all incoming requests being made to the database (ala SQL Server)? many thanks in advance.
Re: Trace for postgreSQL
От:
Andrew Sullivan <ajs@crankycanuck.ca>
Дата:
On Tue, Feb 10, 2004 at 12:04:42PM +0000, beyaNet Consultancy wrote: > Hi, > can anyone tell me whether there is a trace facility (application) > available for postgreSQL version 7.4.1 which will enable me to see all > incoming requests being made to the database (ala SQL Server)? Sure. Alter your configuration to echo queries, and then watch your log file. Alternatively, you can enable the command string statistics function, and then you get the queries in near to real time in pg_stat_activity. A -- Andrew Sullivan | ajs@crankycanuck.ca The plural of anecdote is not data. --Roger Brinner