Re: Generating an ANSI compliant schema recreation script

Поиск
Список
Период
Сортировка
От J French
Тема Re: Generating an ANSI compliant schema recreation script
Дата
Msg-id 35b7725f0510291650y1befa026vd01622a91e6f2379@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Generating an ANSI compliant schema recreation script  (Douglas McNaught <doug@mcnaught.org>)
Ответы Re: Generating an ANSI compliant schema recreation script  (Douglas McNaught <doug@mcnaught.org>)
Re: Generating an ANSI compliant schema recreation script  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I did read the page.  Been there done that, ran the script.  My question was if there was a canned script out there that I didn't have to clean up on the fly.  This will be an cron job for a convoluted development process.  Thanks though.

On 10/29/05, Douglas McNaught <doug@mcnaught.org> wrote:
J French <hikenboots@gmail.com> writes:

> I need to capture the schema on a postgres database and recreate it on
> another ansi compliant platform.  Is it possible to generate a file
> (perhaps from pg_dump?)  as a sequence of ansi compliant SQL commands
> which can be used to recreate the structure?

If you had read the pg_dump manpage, you would have seen:

-s, --schema-only        dump only the schema, no data

The schema dump will be close to ANSI-compatible, but you will
probably have to edit it a bit.

-Doug

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

Предыдущее
От: Douglas McNaught
Дата:
Сообщение: Re: Generating an ANSI compliant schema recreation script
Следующее
От: Douglas McNaught
Дата:
Сообщение: Re: Generating an ANSI compliant schema recreation script