Re: Generating an ANSI compliant schema recreation script - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Generating an ANSI compliant schema recreation script
Date
Msg-id m2slujhpfw.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Generating an ANSI compliant schema recreation script  (J French <hikenboots@gmail.com>)
Responses Re: Generating an ANSI compliant schema recreation script  (J French <hikenboots@gmail.com>)
List pgsql-general
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 by date:

Previous
From: J French
Date:
Subject: Generating an ANSI compliant schema recreation script
Next
From: J French
Date:
Subject: Re: Generating an ANSI compliant schema recreation script