Re: PostgreSQL counterpart to DBMS_METADATA?‏

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: PostgreSQL counterpart to DBMS_METADATA?‏
Дата
Msg-id 20120117112436.GA24854@depesz.com
обсуждение исходный текст
Ответ на PostgreSQL counterpart to DBMS_METADATA?‏  ("Tefft, Michael J" <Michael.J.Tefft@snapon.com>)
Ответы RE: [GENERAL] PostgreSQL counterpart to DBMS_METADATA?‏  ("Tefft, Michael J" <Michael.J.Tefft@snapon.com>)
Список pgsql-general
On Tue, Jan 17, 2012 at 04:53:42AM -0600, Tefft, Michael J wrote:
> I would like to extract the DDL to create a given object (tables,
> primarily) from the catalog. Is there an interface, query, etc. that
> will do this? I'd rather not craft the DDL myself.

use pg_dump -t table_name -s

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/

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

Предыдущее
От: Nick
Дата:
Сообщение: Whats the most efficient query for this result?
Следующее
От: Tom Molesworth
Дата:
Сообщение: Re: Whats the most efficient query for this result?