Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 660E26331B5 for ; Mon, 19 Oct 2009 16:40:20 -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 99489-03 for ; Mon, 19 Oct 2009 19:40:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f198.google.com (mail-yw0-f198.google.com [209.85.211.198]) by mail.postgresql.org (Postfix) with ESMTP id 683C0632FF3 for ; Mon, 19 Oct 2009 16:40:12 -0300 (ADT) Received: by ywh36 with SMTP id 36so4394031ywh.15 for ; Mon, 19 Oct 2009 12:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=NqQ8mY8Ex0HVI5gwNWBwIT282MznOlADbsigrjlBhiM=; b=c+UyXZRk5X2p8wtsYWtBXggGWso1lPOfzHciAnvt4zenXC5QQ0UWWS9L0c1EqB9Od7 TI/SAWm3OCRRbAqC3lnnBNDHfxZ44S2kPxdXP7xwa7/5y6uVGp5Y3axy8mW58xbdsJwW YjGryA6O9TOr6/KV8SqYj3SSR705uwRFdOTSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=lJo6JJmpffIlIk5WtDqTaLj1Tx8VQyC0wnh8r+EeewZxCUfhdtjCztmobvSBZiVJ/V PmWNnV61JpWYqjRtf1GfywR783cillSGShnECwb12b4oS0jk6S8GPtU7K8D05DNxX90N ltw7b5ZuKoJ5oTXhWJBfO07Mxh17+YDfU/fUI= MIME-Version: 1.0 Received: by 10.90.166.2 with SMTP id o2mr4923596age.93.1255981211147; Mon, 19 Oct 2009 12:40:11 -0700 (PDT) In-Reply-To: <508968.2759.qm@web51001.mail.re2.yahoo.com> References: <508968.2759.qm@web51001.mail.re2.yahoo.com> Date: Mon, 19 Oct 2009 15:40:10 -0400 X-Google-Sender-Auth: da0b7a439d901dc6 Message-ID: <491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com> Subject: Re: ERROR : column c.reltriggers does not exist From: Dave Cramer To: "M.R. Muthukumar" Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001636164bdbef602c04764ee99f X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200910/16 X-Sequence-Number: 20018 --001636164bdbef602c04764ee99f Content-Type: text/plain; charset=ISO-8859-1 This is likely dbvisualizer executing the statement below. I don't believe the driver executes that internally. Dave On Mon, Oct 19, 2009 at 3:21 PM, M.R. Muthukumar wrote: > 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 > > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --001636164bdbef602c04764ee99f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This is likely dbvisualizer executing the statement below. I don't beli= eve the driver executes that internally.

Dave

On Mon, Oct 19, 2009 at 3:21 PM, M.R. Muthukumar <m_muthukumar@yahoo.com> wrote:
I am using dbvisu= alizer with postgresql-8.4-701.jdbc3.jar, postgres server version is 8.4.1<= br> 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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 AS "Name",
=A0 =A0 =A0 n.nspname =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 AS "Schema",
=A0 =A0 =A0 pg_get_userbyid(c.relowner) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 AS "Owner",
=A0 =A0 =A0 t.spcname =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 AS "Tablespace",
=A0 =A0 =A0 c.relhasindex =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 AS "Has Indexes",
=A0 =A0 =A0 c.relhasrules =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 AS "Has Rules",
=A0 =A0 =A0 (c.reltriggers > 0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 AS "Has Triggers",
=A0 =A0 =A0 c.relisshared =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 AS "Is Shared",
=A0 =A0 =A0 c.relnatts =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0AS "N Cols",
=A0 =A0 =A0 pg_catalog.obj_description(c.oid, 'pg_class') AS "= ;Comment"
FROM pg_class c
=A0 LEFT JOIN pg_namespace n =A0 ON n.oid =3D c.relnamespace
=A0 LEFT JOIN pg_tablespace t =A0ON t.oid =3D c.reltablespace
WHERE c.relkind =3D 'r'::"char"
AND =A0 n.nspname LIKE 'public'
AND =A0 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





--
Sent via pgsql-jdbc mailing list (
pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

--001636164bdbef602c04764ee99f--