Re: [GENERAL] Comments on tables, functions, etc.

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: [GENERAL] Comments on tables, functions, etc.
Дата
Msg-id 36D59B0E.6AA8E809@rice.edu
обсуждение исходный текст
Ответ на Comments on tables, functions, etc.  (Michael Davis <michael.davis@prevuenet.com>)
Список pgsql-general
Michael -
I was just wondering this myself! I even dug into the source code, to
see if I could find how the comments get in there. Couldn't find any
existing SQL or psql command syntax, so I'm doing this:

template1=> \d pg_description

Table    = pg_description
+----------------------------------+----------------------------------+-------+
|              Field               |              Type                |
Length|
+----------------------------------+----------------------------------+-------+
| objoid                           | oid
|     4 |
| description                      | text
|   var |
+----------------------------------+----------------------------------+-------+
Index:    pg_description_objoid_index
template1=> select oid from pg_class where relname = 'fred';
  oid
-----
66464
(1 row)

template1=> insert into pg_description values (66464,'This is the table
fred') ;

INSERT 66473 1
template1=> \dd fred
description
----------------------
This is the table fred
(1 row)

template1=>

Michael Davis wrote:
>
> How can I add a comment to a table, function, etc. that will should up in a
> /dd comment in psql?

--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Davis
Дата:
Сообщение: Comments on tables, functions, etc.
Следующее
От: g-prog@integritynetwork.net (Ephren Taylor)
Дата:
Сообщение: PgAdmin Location