Re: How to retrieve Comment text using SQL, not psql?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Bob Futrelle <bob(dot)futrelle(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to retrieve Comment text using SQL, not psql?
Date: 2015-05-30 11:58:59
Message-ID: CAFj8pRAQP1akToqT_0qWtgVuv1HYdBsyo7a4dM59XMyCHTz9RQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

you can call function obj_description
http://stackoverflow.com/questions/11493978/how-to-retrieve-the-comment-of-a-postgresql-database

http://www.postgresql.org/docs/9.1/static/functions-info.html

For tables

SELECT pg_catalog.obj_description('tablename'::regclass, 'pg_class') as
"Description;

Regards

Pavel Stehule

2015-05-30 13:48 GMT+02:00 Bob Futrelle <bob(dot)futrelle(at)gmail(dot)com>:

> Using pgAdmin3 I've tried this and variations on it. All are rejected.
>
> select COMMENT ON TABLE articlestats
>
>
> No answer here,
>
> http://www.postgresql.org/docs/9.3/static/sql-comment.html
>
>
> pgAdmin3 had no problem with entering a comment:
>
> COMMENT ON TABLE articlestats IS 'Comprehensive data for every article.'
>
>
> - Bob Futrelle
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2015-05-30 12:10:05 Re: replacing jsonb field value
Previous Message Bob Futrelle 2015-05-30 11:48:48 How to retrieve Comment text using SQL, not psql?