Re: function to display ddl - Mailing list pgsql-hackers

From Yeb Havinga
Subject Re: function to display ddl
Date
Msg-id 4B781FE5.7010202@gmail.com
Whole thread Raw
In response to function to display ddl  ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>)
Responses Re: function to display ddl
List pgsql-hackers
Little, Douglas wrote:
>
> Hi,
>
>  
>
> Is there a PG command or fuction that will return table ddl?
>
If you just want the definition,in psql type \d tablename.
To dump ddl the pg_dump with proper arguments can dump just the ddl of a 
single table. (see pg_dump --help)

I'm not aware of a command or function that returns it though.

Regards,
Yeb Havinga



pgsql-hackers by date:

Previous
From: Yeb Havinga
Date:
Subject: Re: knngist patch support
Next
From: Joachim Wieland
Date:
Subject: Re: Listen / Notify - what to do when the queue is full