Re: How to retrieve a comment/description from a table

From: Darren Ferguson <darren(at)crystalballinc(dot)com>
To: Marcus Claesson <marcus(dot)claesson(at)angiogenetics(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to retrieve a comment/description from a table
Date: 2002-08-23 14:28:44
Message-ID: Pine.LNX.4.44.0208231027580.11124-100000@thread.crystalballinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

\d+ mytable will give you the comments for it

For system tables just do

\d+ pg_** substitute ** for system table name

HTH
On Fri, 23 Aug 2002, Marcus Claesson wrote:

> Hello!
> This psql command is very straight forward and promising:
> COMMENT ON mytable IS 'This is my table.';
>
> But how can I retrieve the particular comment from that table again?
> Using \d+ gives you all the tables with their comments. I want a special
> one.
>
> And if that is not possible, can the \d+ results be obtained from a
> system table or so?
>
> Thanks,
> Marcus
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Darren Ferguson

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ryan Mahoney 2002-08-23 14:39:42 integer[] Update Questions
Previous Message Marcus Claesson 2002-08-23 14:22:25 How to retrieve a comment/description from a table