Re: how to recall the initial definition (CREATE TABLE)

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: how to recall the initial definition (CREATE TABLE)
Date: 2006-01-09 16:15:34
Message-ID: c2d9e70e0601090815i677dfaf2se76d6c1d910b71b5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 1/9/06, A. Kretschmer <andreas(dot)kretschmer(at)schollglas(dot)com> wrote:
> am 09.01.2006, um 10:38:06 -0500 mailte Jaime Casanova folgendes:
> > > > Let's say I forgot the "definition" of a table (.. the original CREATE
> > > > TABLE query)...
>
> > or even you can do in the shelll
> >
> >
> > psql -U postgres -d database_name -c "\d schema_name.table_name" > file
>
> the result is unfortunately not a valid DDL...
>

the question was for a way to remember the definition of the table no
for the exact CREATE TABLE statement you used to create the table...

if that is wath you want, then pg_dump is your solution...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Frank Bax 2006-01-09 16:26:50 Re: What does 'schema' mean ?
Previous Message Tom Lane 2006-01-09 16:14:24 Re: What does 'schema' mean ?