where is comments located?
Howdy:
Running PostgreSQL 7.2.1 on RedHat Linux 7.2.
What table is 'comments' referred to? For instance,
if you should put a comment to your table and / or
columns, where can I query the comments for
said table only?
What I want to do, since I don't seem to be able to drop tables
based on a creation time / data parameter, is find out if a table
has a comment on it; if not, drop that table.
I imagine that the comments would be listed in some
pg_* table name, but I am going over the documentation
for system catalogs and I don't see a reference for
that.
Any suggestions?
Thanks!
-X
On Mon, Mar 10, 2003 at 11:28:54AM -0500, Johnson, Shaunn wrote:
Howdy:
Running PostgreSQL 7.2.1 on RedHat Linux 7.2.
What table is 'comments' referred to? For instance,
if you should put a comment to your table and / or
columns, where can I query the comments for
said table only?
pg_description:
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/catalog-pg-description.html
(It didn't change in 7.2 -> 7.3 AFAIK)
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Y dijo Dios: "Que sea Satan�s, para que la gente no me culpe de todo a m�."
"Y que hayan abogados, para que la gente no culpe de todo a Satan�s"
Comments are in pg_description.
---------------------------------------------------------------------------
Johnson, Shaunn wrote:
Howdy:
Running PostgreSQL 7.2.1 on RedHat Linux 7.2.
What table is 'comments' referred to? For instance,
if you should put a comment to your table and / or
columns, where can I query the comments for
said table only?What I want to do, since I don't seem to be able to drop tables
based on a creation time / data parameter, is find out if a table
has a comment on it; if not, drop that table.I imagine that the comments would be listed in some
pg_* table name, but I am going over the documentation
for system catalogs and I don't see a reference for
that.Any suggestions?
Thanks!
-X
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073