Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTjPG-0001l6-Ha for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Feb 2016 05:03:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTjPG-0000lj-2Z for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Feb 2016 05:03:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTjOk-0000Dp-P8 for pgsql-jdbc@postgresql.org; Thu, 11 Feb 2016 05:02:34 +0000 Received: from bay004-omc1s22.hotmail.com ([65.54.190.33]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTjOh-0004Pu-DK for pgsql-jdbc@postgresql.org; Thu, 11 Feb 2016 05:02:34 +0000 Received: from IND01-MA1-obe.outbound.protection.outlook.com ([65.54.190.59]) by BAY004-OMC1S22.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 10 Feb 2016 21:02:28 -0800 Received: from MA1IND01FT004.eop-IND01.prod.protection.outlook.com (10.152.200.55) by MA1IND01HT008.eop-IND01.prod.protection.outlook.com (10.152.200.81) with Microsoft SMTP Server (TLS) id 15.1.409.7; Thu, 11 Feb 2016 05:02:26 +0000 Received: from MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM (10.152.200.52) by MA1IND01FT004.mail.protection.outlook.com (10.152.200.100) with Microsoft SMTP Server (TLS) id 15.1.409.7 via Frontend Transport; Thu, 11 Feb 2016 05:02:25 +0000 Received: from MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM ([10.164.118.143]) by MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM ([10.164.118.143]) with mapi id 15.01.0403.017; Thu, 11 Feb 2016 05:02:25 +0000 From: dhaval jaiswal To: "pgsql-jdbc@postgresql.org" Subject: System Query hit to Database Thread-Topic: System Query hit to Database Thread-Index: AQHRZIkTw0tjMtD/j0GEP6p5CVZbhg== Date: Thu, 11 Feb 2016 05:02:25 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=softfail (sender IP is 25.152.200.52) smtp.mailfrom=hotmail.com; postgresql.org; dkim=none (message not signed) header.d=none; postgresql.org; dmarc=fail action=none header.from=hotmail.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning hotmail.com discourages use of 25.152.200.52 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [A2MRShZOzKRO/fBGxcrv7fshhm8TbhjF] x-eopattributedmessage: 0 x-forefront-antispam-report: CIP:25.152.200.52; CTRY:GB; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(199003)(189002)(83332001)(5008740100001)(33656002)(6806005)(4000100100001)(50986999)(92566002)(2900100001)(54356999)(1220700001)(102836003)(87572001)(110136002)(104016004)(19627405001)(5002640100001)(189998001)(450100001)(586003)(15395725005)(16236675004)(77096005)(19625215002)(15975445007)(107886002)(40100003)(86362001)(86152002)(122556002)(229853001)(10400500002)(82202001)(105596002)(19580395003)(11100500001)(3280700002)(106116001)(3660700001)(5003600100002)(87936001)(106466001)(73972006)(2501003)(2351001)(15852004); DIR:OUT; SFP:1102; SCL:1; SRVR:MA1IND01HT008; H:MA1PR01MB0039.INDPRD01.PROD.OUTLOOK.COM; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; x-ms-office365-filtering-correlation-id: c8f0ebca-312e-433e-613f-08d332a08889 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(5061506196)(5061507196); SRVR:MA1IND01HT008; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:MA1IND01HT008; BCL:0; PCL:0; RULEID:; SRVR:MA1IND01HT008; x-forefront-prvs: 08497C3D99 Content-Type: multipart/alternative; boundary="_000_MA1PR01MB003971C860E5C85115D0A034DFA80MA1PR01MB0039INDP_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2016 05:02:25.5138 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA1IND01HT008 X-OriginalArrivalTime: 11 Feb 2016 05:02:29.0008 (UTC) FILETIME=[6816D900:01D16489] X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --_000_MA1PR01MB003971C860E5C85115D0A034DFA80MA1PR01MB0039INDP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 b= y jdbc driver. http://stackoverflow.com/questions/5453992/a-very-strange-sql-of-postgresql SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME= , CASE n.nspname ~ '^pg_' OR n.nspname =3D 'information_schema' WHEN true= THEN CASE WHEN n.nspname =3D 'pg_catalog' OR n.nspname =3D 'information_s= chema' THEN CASE c.relkind WHEN 'r' THEN 'SYSTEM TABLE' WHEN 'v' THEN '= SYSTEM VIEW' WHEN 'i' THEN 'SYSTEM INDEX' ELSE NULL END WHEN n.nspna= me =3D 'pg_toast' THEN CASE c.relkind WHEN 'r' THEN 'SYSTEM TOAST TABLE' = WHEN 'i' THEN 'SYSTEM TOAST INDEX' ELSE NULL END ELSE CASE c.relkind= WHEN 'r' THEN 'TEMPORARY TABLE' WHEN 'i' THEN 'TEMPORARY INDEX' WHEN= 'S' THEN 'TEMPORARY SEQUENCE' WHEN 'v' THEN 'TEMPORARY VIEW' ELSE NULL= END END WHEN false THEN CASE c.relkind WHEN 'r' THEN 'TABLE' WHEN 'i= ' THEN 'INDEX' WHEN 'S' THEN 'SEQUENCE' WHEN 'v' THEN 'VIEW' WHEN 'c' TH= EN 'TYPE' ELSE NULL END ELSE NULL END AS TABLE_TYPE, d.description AS = REMARKS FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c LEFT JOIN p= g_catalog.pg_description d ON (c.oid =3D d.objoid AND d.objsubid =3D 0) LE= FT JOIN pg_catalog.pg_class dc ON (d.classoid=3Ddc.oid AND dc.relname=3D'pg= _class') LEFT JOIN pg_catalog.pg_namespace dn ON (dn.oid=3Ddc.relnamespace= AND dn.nspname=3D'pg_catalog') WHERE c.relnamespace =3D n.oid AND c.reln= ame LIKE 'PROBABLYNOT' AND (false OR ( c.relkind =3D 'r' AND n.nspname !~= '^pg_' AND n.nspname <> 'information_schema' ) ) ORDER BY TABLE_TYPE,TABL= E_SCHEM,TABLE_NAME Environment details: Version: PostgreSQL 9.4.0 Driver version: postgresql-9.4-1201.jdbc41.jar JVM: 1.7 --_000_MA1PR01MB003971C860E5C85115D0A034DFA80MA1PR01MB0039INDP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Kindly redirect me to the correct forum, If below question is not releva= nt 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 b= y jdbc driver.

http://stackoverflow.com/questions/5453992/a-very-strange-sql-of-postgresql=

 

SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME= ,  CASE n.nspname ~ '^pg_' OR n.nspname =3D 'information_schema' = WHEN true THEN CASE  WHEN n.nspname =3D 'pg_catalog' OR n.nspname =3D= 'information_schema' THEN CASE c.relkind   WHEN 'r' THEN 'SYSTEM TABLE'   WHEN 'v' THEN 'SYSTEM VIEW'   WH= EN 'i' THEN 'SYSTEM INDEX'   ELSE NULL   END  WHEN= n.nspname =3D 'pg_toast' THEN CASE c.relkind   WHEN 'r' THEN 'SY= STEM TOAST TABLE'   WHEN 'i' THEN 'SYSTEM TOAST INDEX'  = ; ELSE NULL   END  ELSE CASE c.relkind   WHEN 'r' THEN 'TEMPORARY TABLE'   WHEN 'i' THEN 'TEMPORARY INDEX= '   WHEN 'S' THEN 'TEMPORARY SEQUENCE'   WHEN 'v' THEN = 'TEMPORARY VIEW'   ELSE NULL   END  END  WHEN= false THEN CASE c.relkind  WHEN 'r' THEN 'TABLE'  WHEN 'i' THEN = 'INDEX'  WHEN 'S' THEN 'SEQUENCE'  WHEN 'v' THEN 'VIEW'  WHEN 'c' THEN 'TYPE'  ELSE NULL  END&= nbsp; ELSE NULL  END  AS TABLE_TYPE, d.description AS REMARKS&nbs= p; FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c  LEFT JOIN pg= _catalog.pg_description d ON (c.oid =3D d.objoid AND d.objsubid =3D 0) = ; LEFT JOIN pg_catalog.pg_class dc ON (d.classoid=3Ddc.oid AND dc.relname=3D'pg_c= lass')  LEFT JOIN pg_catalog.pg_namespace dn ON (dn.oid=3Ddc.relnamesp= ace AND dn.nspname=3D'pg_catalog')  WHERE c.relnamespace =3D n.oid&nbs= p; AND c.relname LIKE 'PROBABLYNOT'  AND (false  OR ( c.relkind =3D 'r' AND n.nspname !~ '^pg_' AND n.nspname <> 'information_schema= ' ) )  ORDER BY TABLE_TYPE,TABLE_SCHEM,TABLE_NAME



Environment details:

Version: PostgreSQL 9.4.0

Driver version: postgresql-9.4-1201.jdbc41.jar

JVM: 1.7



--_000_MA1PR01MB003971C860E5C85115D0A034DFA80MA1PR01MB0039INDP_--