Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CCE75633B3C for ; Mon, 19 Oct 2009 18:09:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11981-04-4 for ; Mon, 19 Oct 2009 21:09:11 +0000 (UTC) X-Greylist: delayed 00:05:24.781462 by SQLgrey-1.7.6 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id 91CE1633AC1 for ; Mon, 19 Oct 2009 18:09:11 -0300 (ADT) Received: from [192.168.157.32] (unknown [216.129.226.152]) by outbound.vnet-inc.com (Postfix) with ESMTP id AF81F59AB; Mon, 19 Oct 2009 15:03:45 -0600 (MDT) Message-ID: <4ADCD15B.2000506@ttc-cmc.net> Date: Mon, 19 Oct 2009 14:51:39 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M.R. Muthukumar" , pgsql-jdbc@postgresql.org Subject: Re: ERROR : column c.reltriggers does not exist References: <508968.2759.qm@web51001.mail.re2.yahoo.com> In-Reply-To: <508968.2759.qm@web51001.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200910/17 X-Sequence-Number: 20019 I'm showing in PostgreSQL 8.3.3 has the field reltriggers, but in 8.4.0 the field no longer exists and looks like may have been replaced with relhastriggers, which is boolean? Try: SELECT c.relname AS "Name", n.nspname AS "Schema", pg_get_userbyid(c.relowner) AS "Owner", t.spcname AS "Tablespace", c.relhasindex AS "Has Indexes", c.relhasrules AS "Has Rules", (c.relhastriggers = 'f') AS "Has Triggers", c.relisshared AS "Is Shared", c.relnatts AS "N Cols", pg_catalog.obj_description(c.oid, 'pg_class') AS "Comment" FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace LEFT JOIN pg_tablespace t ON t.oid = c.reltablespace WHERE c.relkind = 'r'::"char" AND n.nspname LIKE 'public' AND c.relname LIKE '%' ORDER BY n.nspname, c.relname danap http://dandymadeproductions.com >I am using dbvisualizer with postgresql-8.4-701.jdbc3.jar, postgres server version is 8.4.1 >When I try to get the table definition I am getting the following error : > >ERROR: column c.reltriggers does not exist >Position: 414 > >Details are : > >The command that caused the problem: >SELECT c.relname AS "Name", > n.nspname AS "Schema", > pg_get_userbyid(c.relowner) AS "Owner", > t.spcname AS "Tablespace", > c.relhasindex AS "Has Indexes", > c.relhasrules AS "Has Rules", > (c.reltriggers > 0) AS "Has Triggers", > c.relisshared AS "Is Shared", > c.relnatts AS "N Cols", > pg_catalog.obj_description(c.oid, 'pg_class') AS "Comment" >FROM pg_class c > LEFT JOIN pg_namespace n ON n.oid = c.relnamespace > LEFT JOIN pg_tablespace t ON t.oid = c.reltablespace >WHERE c.relkind = 'r'::"char" >AND n.nspname LIKE 'public' >AND c.relname LIKE '%' >ORDER BY n.nspname, c.relname > >I am thinking reltriggers column is no longer in pg_class in 8.4.1 version. Is there a updated >JDBC driver for 8.4.x. > >Any help is greatly appreciated. > >Thanks a bunch. > >-Muthu >