DDL from psql console?

From: John Browne <jkbrowne(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: DDL from psql console?
Date: 2005-04-25 15:29:26
Message-ID: ccc6061050425082963907ad9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Akbar 2005-04-25 15:29:55 installation as service failed on windows xp
Previous Message Tom Lane 2005-04-25 15:18:23 Re: What does "tuple concurrently updated" mean?