From: dmp <danap@ttc-cmc.net>
To: m_muthukumar@yahoo.com
To: pgsql-jdbc@postgresql.org
Subject: Re: ERROR : column c.reltriggers does not exist
Date: Mon, 19 Oct 2009 15:23:28 -0600
Message-ID: <4ADCD8D0.9080907@ttc-cmc.net> (raw)
In-Reply-To: <4ADCD15B.2000506@ttc-cmc.net>
References: <508968.2759.qm@web51001.mail.re2.yahoo.com>
<4ADCD15B.2000506@ttc-cmc.net>
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
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: danap@ttc-cmc.net, m_muthukumar@yahoo.com
Subject: Re: ERROR : column c.reltriggers does not exist
In-Reply-To: <4ADCD8D0.9080907@ttc-cmc.net>
References: <508968.2759.qm@web51001.mail.re2.yahoo.com> <4ADCD15B.2000506@ttc-cmc.net> <4ADCD8D0.9080907@ttc-cmc.net>
* 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