RE: [GENERAL] PostgreSQL counterpart to DBMS_METADATA?‏

Поиск
Список
Период
Сортировка
От Tefft, Michael J
Тема RE: [GENERAL] PostgreSQL counterpart to DBMS_METADATA?‏
Дата
Msg-id 8C0087E93F6A9A459051869F5D574891884D8F@LISL-XBCK-C1-V2.snaponglobal.com
обсуждение исходный текст
Ответ на Re: PostgreSQL counterpart to DBMS_METADATA?‏  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: [GENERAL] RE: [GENERAL] PostgreSQL counterpart to DBMS_METADATA?‏  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
Any suggestions for doing this from PL/pgSQL?

-----Original Message-----
From: depesz@depesz.com [mailto:depesz@depesz.com] 
Sent: Tuesday, January 17, 2012 6:25 AM
To: Tefft, Michael J
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] PostgreSQL counterpart to DBMS_METADATA?‏

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 по дате отправления:

Предыдущее
От: Tom Molesworth
Дата:
Сообщение: Re: Whats the most efficient query for this result?
Следующее
От: "P. Broennimann"
Дата:
Сообщение: Basic PostgreSQL Question