pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: M.R. Muthukumar <m_muthukumar@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ERROR : column c.reltriggers does not exist
Date: Mon, 19 Oct 2009 15:40:10 -0400
Message-ID: <491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com> (raw)
In-Reply-To: <508968.2759.qm@web51001.mail.re2.yahoo.com>
References: <508968.2759.qm@web51001.mail.re2.yahoo.com>

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 <m_muthukumar@yahoo.com>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
>

view thread (6+ messages)  latest in thread

Message-ID: <491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com>
Permalink:  ../491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com/
Also on:    postgresql.org/message-id/491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, m_muthukumar@yahoo.com
  Subject: Re: ERROR : column c.reltriggers does not exist
  In-Reply-To: <491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com>
  References: <508968.2759.qm@web51001.mail.re2.yahoo.com> <491f66a50910191240s60f26112na10026b31970bbe4@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox