Re: how do I get table DDL from psql (not from pg_dump)

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: how do I get table DDL from psql (not from pg_dump)
Дата
Msg-id 20080227155008.GA7920@crankycanuck.ca
обсуждение исходный текст
Ответ на how do I get table DDL from psql (not from pg_dump)  ("Sofer, Yuval" <Yuval_Sofer@bmc.com>)
Список pgsql-admin
On Wed, Feb 27, 2008 at 05:21:08AM -0600, Sofer, Yuval wrote:
> I need to extract table DDL (create script) from database connection
> (using sql, by retrieving system table info or by activating some pg
> function)

pg_dump -s does this.  See the manual for more details on the switches.

A


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

Предыдущее
От: "Sofer, Yuval"
Дата:
Сообщение: how do I get table DDL from psql (not from pg_dump)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to reindex when unable to open relation?