From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: System Query hit to Database
Date: Sat, 13 Feb 2016 13:13:25 +0100
Message-ID: <n9n6l9$u7$1@ger.gmane.org> (raw)
In-Reply-To: <PN1PR01MB00468593009E479AD8FBDEC7DFAA0@PN1PR01MB0046.INDPRD01.PROD.OUTLOOK.COM>
References: <MA1PR01MB003971C860E5C85115D0A034DFA80@MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM>
<PN1PR01MB00468593009E479AD8FBDEC7DFAA0@PN1PR01MB0046.INDPRD01.PROD.OUTLOOK.COM>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
I have already answered that 2 days ago:
This is the query sent by getTables() (as mention on Stackoverflow).
There are some connection pools out there that have a stupid default configuration and use getTables() as the query to validate if a connection is still alive. If you additionally have enabled validating connections when they are taken out or returned to the pool, this will be called for each "getConnection()" inside your code.
Check the configuration of your connection pool.
dhaval jaiswal schrieb am 13.02.2016 um 11:53:
> Can anyone help me on below query.
>
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* dhaval jaiswal <dhavallj@hotmail.com>
> *Sent:* Thursday, February 11, 2016 10:32 AM
> *To:* pgsql-jdbc@postgresql.org
> *Subject:* System Query hit to Database
>
> Kindly redirect me to the correct forum, If below question is not relevant to you.
>
>
>
> I am getting lot of following queries on my Database. I need your help to stop hitting this kind of queries to database.
>
> While going through search found the following article saying it's caused by jdbc driver.
>
> http://stackoverflow.com/questions/5453992/a-very-strange-sql-of-postgresql
>
> Environment details:
>
> Version: PostgreSQL 9.4.0
>
> Driver version: postgresql-9.4-1201.jdbc41.jar
>
> JVM: 1.7
>
>
>
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: System Query hit to Database
In-Reply-To: <n9n6l9$u7$1@ger.gmane.org>
References: <MA1PR01MB003971C860E5C85115D0A034DFA80@MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM> <PN1PR01MB00468593009E479AD8FBDEC7DFAA0@PN1PR01MB0046.INDPRD01.PROD.OUTLOOK.COM> <n9n6l9$u7$1@ger.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