Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4B4EF632210 for ; Mon, 19 Oct 2009 18:35:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 90180-01 for ; Mon, 19 Oct 2009 21:35:29 +0000 (UTC) X-Greylist: from auto-whitelisted 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 96163632888 for ; Mon, 19 Oct 2009 18:35:34 -0300 (ADT) Received: from [192.168.157.32] (unknown [216.129.226.152]) by outbound.vnet-inc.com (Postfix) with ESMTP id 7ACC85CC8; Mon, 19 Oct 2009 15:35:32 -0600 (MDT) Message-ID: <4ADCD8D0.9080907@ttc-cmc.net> Date: Mon, 19 Oct 2009 15:23:28 -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_muthukumar@yahoo.com, pgsql-jdbc@postgresql.org Subject: Re: ERROR : column c.reltriggers does not exist References: <508968.2759.qm@web51001.mail.re2.yahoo.com> <4ADCD15B.2000506@ttc-cmc.net> In-Reply-To: <4ADCD15B.2000506@ttc-cmc.net> 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=-1.299 tagged_above=-10 required=5 tests=AWL=-1.300, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200910/18 X-Sequence-Number: 20020 Sorry, looks like you wanted > 0 so should have been: (c.relhastriggers = 't') AS "Has Triggers", danap http://dandymadeproductions.com > 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