Skip site navigation (1) Skip section navigation (2)

Re: function to display ddl

From: Yeb Havinga <yebhavinga(at)gmail(dot)com>
To: "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: function to display ddl
Date: 2010-02-14 16:08:05
Message-ID: 4B781FE5.7010202@gmail.com (view raw or flat)
Thread:
Lists: 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


In response to

Responses

pgsql-hackers by date

Next:From: Joachim WielandDate: 2010-02-14 16:22:12
Subject: Re: Listen / Notify - what to do when the queue is full
Previous:From: Yeb HavingaDate: 2010-02-14 16:01:28
Subject: Re: knngist patch support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group