Re: DDL from psql console? - Mailing list pgsql-general

From Thomas F.O'Connell
Subject Re: DDL from psql console?
Date
Msg-id 757535eee398c971de05f2e6a5f62cff@sitening.com
Whole thread Raw
In response to DDL from psql console?  (John Browne <jkbrowne@gmail.com>)
List pgsql-general
Any reason not to use pg_dump -s?

-tfo

--
Thomas F. O'Connell
Co-Founder, Information Architect
Sitening, LLC

Strategic Open Source: Open Your i™

http://www.sitening.com/
110 30th Avenue North, Suite 6
Nashville, TN 37203-6320
615-260-0005

On Apr 25, 2005, at 10:29 AM, John Browne wrote:

> Hello,
>
> I was curious if there was a way to get the DDL for a particular table
> from the psql client console?  I have two postgres boxes (development
> and production) and would like to copy & paste the DDL "CREATE TABLE"
> statements from the development console to the production console when
> I'm moving a particular table definition over.  I tried \dt+ but it
> didn't appear to show it.
>
> Any thoughts?

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: timezone() with timeofday() converts the wrong direction?
Next
From: Scott Marlowe
Date:
Subject: Re: DDL from psql console?