From: | pgsql-bugs(at)postgresql(dot)org |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Bug #570: \d in psql does not show triggers |
Date: | 2002-02-01 13:41:06 |
Message-ID: | 200202011341.g11Df5s66150@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Gerald Vogt (gv_de(at)yahoo(dot)de) reports a bug with a severity of 3
The lower the number the more severe it is.
Short Description
\d in psql does not show triggers
Long Description
When using \d in psql to find details of a table, occasionally
triggers will not be listed although the table does have triggers. This happens when the table does not have any rules.
e.g.:
SELECT relhasindex, relkind, relchecks, reltriggers, relhasrules from pg_class where relname='pub_liste';
relhasindex | relkind | relchecks | reltriggers | relhasrules
-------------+---------+-----------+-------------+-------------
t | r | 0 | 25 | f
(1 row)
However:
\d pub_liste
Table "pub_liste"
Attribute | Type | Modifier
-----------+-----------------------+----------
...
Index: pub_liste_pkey
This is due to a bug in bin/psql/describe.c line 793
< if (!error && tableinfo.hasrules)
should probably be
> if (!error && tableinfo.triggers)
Gerald
Sample Code
No file was uploaded with this report
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-02-01 14:52:07 | Re: Bug #570: \d in psql does not show triggers |
Previous Message | Stefano Reksten | 2002-02-01 10:49:13 | Re: New to Postgresql - Backend timeout /JDBC |