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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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