From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Picking up strange queries for "pg_catalog"
Date: Sun, 04 Jul 2010 13:25:07 +0200
Message-ID: <i0pr2d$211$1@dough.gmane.org> (raw)
In-Reply-To: <D1BEEF82-02F2-4CFD-BBD3-EA0AFFA0AFF8@sharp.fm>
References: <D1BEEF82-02F2-4CFD-BBD3-EA0AFFA0AFF8@sharp.fm>
Graham Leggett wrote on 04.07.2010 13:13:
> Hi all,
>
> While investigating some performance issues with a database, I have been
> analysing the database queries, and have discovered that I am getting
> thousands and thousands of queries that look like the ones below.
>
> Asking on the pgsql-general list, I was pointed in the direction of the
> jdbc driver, which in theory is making these queries, but not caching them.
>
> Does this look familiar to anybody?
>
> In addition to this, I am using the atomikos XA transaction manager,
> could this be the source of these queries?
>
I don't think it's the driver "making" these calls. Some of them look like they are a result of calling severl JDBC metadata API functions (e.g DatabaseMetaData.getColumns() or something similar) which in turn are not initiated by the driver, but by the client software. So I would suspect the transaction manager or your ORM library to make those calls (and thus generating the queries)
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Picking up strange queries for "pg_catalog"
In-Reply-To: <i0pr2d$211$1@dough.gmane.org>
References: <D1BEEF82-02F2-4CFD-BBD3-EA0AFFA0AFF8@sharp.fm> <i0pr2d$211$1@dough.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox