Re: SQL statement logging: picking up strange queries from "pg_catalog"

From: Graham Leggett <minfrin(at)sharp(dot)fm>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL statement logging: picking up strange queries from "pg_catalog"
Date: 2010-07-03 23:22:24
Message-ID: B870A382-7E0D-4B33-BD3D-E5D8CC8956C9@sharp.fm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04 Jul 2010, at 12:49 AM, Tom Lane wrote:

> I'd bet that you are using a client-side driver that feels a need to
> fetch metadata about the tables it's working with. JDBC or ODBC
> maybe?
>
> A reasonable driver would cache such information, so if there are
> enough
> of these to present a performance issue, maybe the problem is you're
> using too short-lived database connections.

I am using JDBC indeed, most specifically
postgresql-8.4-701.jdbc4.jar, along with the atomikos transaction
manager.

Does postgresql have an access log where the lifetime of database
connections are tracked? Specifically tracking when the client
connected, and how long the client stayed connected for.

Regards,
Graham
--

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-07-03 23:24:39 Re: SQL statement logging: picking up strange queries from "pg_catalog"
Previous Message Tom Lane 2010-07-03 22:49:31 Re: SQL statement logging: picking up strange queries from "pg_catalog"