Re: Showing table comments with psql

From: Mark Jeffcoat <jeffcoat(at)alumni(dot)rice(dot)edu>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Showing table comments with psql
Date: 2019-01-04 17:32:41
Message-ID: CAOT_8kZCgnNHph4zoaC5YQBHSDui3+=vovsx+ewdDsCB_kkZaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jan 4, 2019 at 11:00 AM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:

> postgres=# create table test_table (col1 integer);
> CREATE TABLE
> postgres=# comment on table test_table is 'this is a table comment';
> COMMENT
> postgres=# \dt+
> List of relations
> ┌────────┬────────────┬───────┬───────┬─────────┬─────────────────────────┐
> │ Schema │ Name │ Type │ Owner │ Size │ Description │
> ╞════════╪════════════╪═══════╪═══════╪═════════╪═════════════════════════╡
> │ public │ test_table │ table │ pavel │ 0 bytes │ this is a table comment │
> └────────┴────────────┴───────┴───────┴─────────┴─────────────────────────┘
> (1 row)
>

I was so close! That works; thank you very much for your help, Pavel.

--
Mark Jeffcoat
Austin, TX

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2019-01-04 17:33:24 Re: Comparing dates in DDL
Previous Message Rich Shepard 2019-01-04 17:32:09 Re: Comparing dates in DDL