X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 30FD75294B for ; Mon, 4 Apr 2005 16:49:38 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60456-09 for ; Mon, 4 Apr 2005 15:49:31 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 83AA2533F6 for ; Mon, 4 Apr 2005 16:49:31 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j34FnLPA026422; Mon, 4 Apr 2005 11:49:21 -0400 (EDT) To: alvin.yk@gmail.com Cc: pgsql-performance@postgresql.org Subject: Re: 8.0.1 performance question. In-reply-to: References: Comments: In-reply-to message dated "Mon, 04 Apr 2005 18:32:04 +0800" Date: Mon, 04 Apr 2005 11:49:21 -0400 Message-ID: <26421.1112629761@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/50 X-Sequence-Number: 11447 writes: > As a result, I modified log_statement to all. Without my application > doing anything, I see statements below being executed non-stop. Who > is triggering these statemetns? Is this normal? What am I doing > wrong? > 2005-04-04 18:05:00 CST PARSELOG: statement: SELECT attnotnull FROM > pg_catalog.pg_attribute WHERE attrelid = $1 AND attnum = $2 > 2005-04-04 18:05:00 CST PARSELOG: statement: SELECT def.adsrc FROM > pg_catalog.pg_class c JOIN pg_catalog.pg_attribute a ON > (a.attrelid=c.oid > ) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND > a.attnum = def.adnum) WHERE c.oid = $1 and a.attnum = $2 AND def.adsrc > L > IKE '%nextval(%' Better ask about that on pgsql-jdbc. I suppose this is the trace of the JDBC driver trying to find out column metadata ... but if it's failing to cache the information that's a pretty serious performance hit. regards, tom lane