Re: Tracing SQL statements per page/request - Mailing list pgsql-jdbc

From John R Pierce
Subject Re: Tracing SQL statements per page/request
Date
Msg-id 48AC911A.5060001@hogranch.com
Whole thread Raw
In response to Tracing SQL statements per page/request  (Shahaf Abileah <shahaf@redfin.com>)
Responses Re: Tracing SQL statements per page/request  (Shahaf Abileah <shahaf@redfin.com>)
List pgsql-jdbc
Shahaf Abileah wrote:
>
> I’m looking for a general-purpose way to track and report the number
> of SQL statements issued to Postgres during the processing of a single
> page (a single URL0 on my company’s website (www.redfin.com
> <http://www.redfin.com/>).
>
> Does the Postgres JDBC driver have any features to help me do this?
>
> If not, can someone recommend another approach? In case it helps, we
> use hibernate as our O-R mapping so hibernate is responsible for
> generating most (not all) of our SQL queries (some are still issued by
> direct SQL). Also, we use the PostGIS JDBC driver, which is a wrapper
> around the standard PostgreSQL JDBC driver.
>

enable statement logging on the postgres server, then filter (grep) the
logfile to just list the connection and database you are interested in
and pipe that to wc -l




pgsql-jdbc by date:

Previous
From: Shahaf Abileah
Date:
Subject: Tracing SQL statements per page/request
Next
From: Guillaume Cottenceau
Date:
Subject: Re: Tracing SQL statements per page/request