Re: Feature request: pg_get_tabledef(text)

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Feature request: pg_get_tabledef(text)
Дата
Msg-id CANzqJaCcj2ipPnbvawSyuSh=A9Z-+v=Kyd1paFEFXT6JN4zDJg@mail.gmail.com
обсуждение исходный текст
Ответ на Feature request: pg_get_tabledef(text)  (Hans Schou <hans.schou@gmail.com>)
Список pgsql-general
On Wed, Nov 22, 2023 at 10:41 AM Hans Schou <hans.schou@gmail.com> wrote:
Hi

Similar to pg_get_viewdef() and pg_get_functiondef() it would be useful with a pg_get_tabledef() to get a full description of how a table is defined.
 
Because there's already pg_get_viewdef(), pg_get_functiondef(), pg_get_constraintdef(), pg_indexes.indexdef and ways to get all GRANT and REVOKE privs, any pg_get_tabledef() would just be the CREATE TABLE statement without PRIMARY KEY or FOREIGN KEY clauses.

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

Предыдущее
От: Hans Schou
Дата:
Сообщение: Feature request: pg_get_tabledef(text)
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Feature request: pg_get_tabledef(text)