pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ERROR : column c.reltriggers does not exist
6+ messages / 5 participants
[nested] [flat]

* ERROR : column c.reltriggers does not exist
@ 2009-10-19 19:21 M.R. Muthukumar <m_muthukumar@yahoo.com>
  2009-10-19 19:40 ` Re: ERROR : column c.reltriggers does not exist Dave Cramer <pg@fastcrypt.com>
  2009-10-19 20:51 ` Re: ERROR : column c.reltriggers does not exist dmp <danap@ttc-cmc.net>
  2011-06-13 17:15 ` Re: ERROR : column c.reltriggers does not exist crramirez <crramirez@gmail.com>
  0 siblings, 3 replies; 6+ messages in thread

From: M.R. Muthukumar @ 2009-10-19 19:21 UTC (permalink / raw)
  To: pgsql-jdbc

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



      



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: ERROR : column c.reltriggers does not exist
  2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
@ 2009-10-19 19:40 ` Dave Cramer <pg@fastcrypt.com>
  2 siblings, 0 replies; 6+ messages in thread

From: Dave Cramer @ 2009-10-19 19:40 UTC (permalink / raw)
  To: M.R. Muthukumar <m_muthukumar@yahoo.com>; +Cc: pgsql-jdbc

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
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: ERROR : column c.reltriggers does not exist
  2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
@ 2009-10-19 20:51 ` dmp <danap@ttc-cmc.net>
  2009-10-19 21:23   ` Re: ERROR : column c.reltriggers does not exist dmp <danap@ttc-cmc.net>
  2 siblings, 1 reply; 6+ messages in thread

From: dmp @ 2009-10-19 20:51 UTC (permalink / raw)
  To: M.R. Muthukumar <m_muthukumar@yahoo.com>; pgsql-jdbc

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
>



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: ERROR : column c.reltriggers does not exist
  2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
  2009-10-19 20:51 ` Re: ERROR : column c.reltriggers does not exist dmp <danap@ttc-cmc.net>
@ 2009-10-19 21:23   ` dmp <danap@ttc-cmc.net>
  0 siblings, 0 replies; 6+ messages in thread

From: dmp @ 2009-10-19 21:23 UTC (permalink / raw)
  To: m_muthukumar@yahoo.com; pgsql-jdbc

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





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: ERROR : column c.reltriggers does not exist
  2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
@ 2011-06-13 17:15 ` crramirez <crramirez@gmail.com>
  2013-03-30 18:04   ` Re: ERROR : column c.reltriggers does not exist sushant.bose.1984@gmail.com <sushant.bose.1984@gmail.com>
  2 siblings, 1 reply; 6+ messages in thread

From: crramirez @ 2011-06-13 17:15 UTC (permalink / raw)
  To: pgsql-jdbc

Just replace your DbVisualizer-6.0.x/resources/profiles/postgresql8.xml with
this

http://postgresql.1045698.n5.nabble.com/file/n4485115/postgresql8.xml
postgresql8.xml 

It takes care of the version change

Regards,
Carlos

--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-column-c-reltriggers-does-not-exist-tp2175735p4485115....
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: ERROR : column c.reltriggers does not exist
  2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
  2011-06-13 17:15 ` Re: ERROR : column c.reltriggers does not exist crramirez <crramirez@gmail.com>
@ 2013-03-30 18:04   ` sushant.bose.1984@gmail.com <sushant.bose.1984@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: sushant.bose.1984@gmail.com @ 2013-03-30 18:04 UTC (permalink / raw)
  To: pgsql-jdbc

I had the same problem with Postgres 9.2.

This fix worked for me.

Thank you  "crramirez". Appreciate your help. :)



--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-column-c-reltriggers-does-not-exist-tp2175735p5750189....
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2013-03-30 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19 19:21 ERROR : column c.reltriggers does not exist M.R. Muthukumar <m_muthukumar@yahoo.com>
2009-10-19 19:40 ` Dave Cramer <pg@fastcrypt.com>
2009-10-19 20:51 ` dmp <danap@ttc-cmc.net>
2009-10-19 21:23   ` dmp <danap@ttc-cmc.net>
2011-06-13 17:15 ` crramirez <crramirez@gmail.com>
2013-03-30 18:04   ` sushant.bose.1984@gmail.com <sushant.bose.1984@gmail.com>

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