Re: Generating an ANSI compliant schema recreation script

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: J French <hikenboots(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Generating an ANSI compliant schema recreation script
Date: 2005-10-29 23:29:55
Message-ID: m2slujhpfw.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

J French <hikenboots(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message J French 2005-10-29 23:50:55 Re: Generating an ANSI compliant schema recreation script
Previous Message psql 2005-10-29 22:56:41 create table in transaction fails