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

Поиск
Список
Период
Сортировка
От Sofer, Yuval
Тема how do I get table DDL from psql (not from pg_dump)
Дата
Msg-id BE67D1149BBD5746984545ED91F702E0BD4ADE@hou-ex-02.adprod.bmc.com
обсуждение исходный текст
Ответы Re: how do I get table DDL from psql (not from pg_dump)  (Andrew Sullivan <ajs@crankycanuck.ca>)
Список pgsql-admin

Hi

 

I need to extract table DDL (create script) from database connection (using sql, by retrieving system table info or by activating some pg function)

 

Is this possible in postgres?

 

Please help

 

Thanks

 

Yuval Sofer
BMC Software
CTM&D Business Unit

DBA Team
972-52-4286-282
yuval_sofer@bmc.com

 

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

Предыдущее
От: "Markus Bertheau"
Дата:
Сообщение: Re: Pgsql 8.2.5 Installation
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: how do I get table DDL from psql (not from pg_dump)