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: (view raw or whole 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.

Yeb Havinga

In response to


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-2015 The PostgreSQL Global Development Group