Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6620363278C for ; Sun, 4 Jul 2010 08:25:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 14536-05 for ; Sun, 4 Jul 2010 11:25:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 3540C63276B for ; Sun, 4 Jul 2010 08:25:11 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OVNJs-0008I1-LC for pgsql-jdbc@postgresql.org; Sun, 04 Jul 2010 13:25:08 +0200 Received: from ppp-188-174-26-141.dynamic.mnet-online.de ([188.174.26.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2010 13:25:08 +0200 Received: from spam_eater by ppp-188-174-26-141.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2010 13:25:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Picking up strange queries for "pg_catalog" Date: Sun, 04 Jul 2010 13:25:07 +0200 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-188-174-26-141.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.51 tagged_above=-10 required=5 tests=BAYES_05=-0.5, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/19 X-Sequence-Number: 20684 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