Re: PostgreSQL counterpart to DBMS_METADATA?‏

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: "Tefft, Michael J" <Michael(dot)J(dot)Tefft(at)snapon(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL counterpart to DBMS_METADATA?‏
Date: 2012-01-17 11:24:36
Message-ID: 20120117112436.GA24854@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Molesworth 2012-01-17 11:33:39 Re: Whats the most efficient query for this result?
Previous Message Tefft, Michael J 2012-01-17 10:53:42 PostgreSQL counterpart to DBMS_METADATA?‏