Re: Retrieving a column comment

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Oliver Kohll <oliver(at)gtwebmarque(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Retrieving a column comment
Date: 2003-10-26 23:03:18
Message-ID: 20031026230317.GH12063@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Oct 26, 2003 at 10:02:22PM +0000, Oliver Kohll wrote:

> I can't seem to retrieve a comment on a table column. The following copy from
> psql should I think return a comment:
>
> mydatabase=> SELECT relnamespace FROM pg_class WHERE relname='car';
> relnamespace
> --------------
> 2200
> (1 row)

Try using relfilenode instead of relnamespace.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Hay que recordar que la existencia en el cosmos, y particularmente la
elaboración de civilizaciones dentre de él no son, por desgracia,
nada idílicas" (Ijon Tichy)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Witney 2003-10-27 00:07:52 Re: shared memory on OS X - 7.4beta4
Previous Message Alvaro Herrera 2003-10-26 22:51:37 Re: shared memory on OS X - 7.4beta4