Re: DDL from psql console?

Поиск
Список
Период
Сортировка
От John Browne
Тема Re: DDL from psql console?
Дата
Msg-id ccc6061050425084469471592@mail.gmail.com
обсуждение исходный текст
Ответ на DDL from psql console?  (John Browne <jkbrowne@gmail.com>)
Ответы Re: DDL from psql console?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Yeah, I know about pg_dump.  I just was curious if there was another
way, since I always have two psql consoles already open at all times
anyway. :-)

On 4/25/05, John Browne <jkbrowne@gmail.com> 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 по дате отправления:

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: DDL from psql console?
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Hosting Service Recommendations