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

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: how to recall the initial definition (CREATE TABLE)
Дата
Msg-id c2d9e70e0601090815i677dfaf2se76d6c1d910b71b5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: how to recall the initial definition (CREATE TABLE)  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice
On 1/9/06, A. Kretschmer <andreas.kretschmer@schollglas.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 ;)

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: What does 'schema' mean ?
Следующее
От: Frank Bax
Дата:
Сообщение: Re: What does 'schema' mean ?