Re: Backup Schema w/ SQL Text File - Mailing list pgsql-novice

From Alan Hodgson
Subject Re: Backup Schema w/ SQL Text File
Date
Msg-id 200605072105.21010@hal.medialogik.com
Whole thread Raw
In response to Backup Schema w/ SQL Text File  (<operationsengineer1@yahoo.com>)
List pgsql-novice
On May 7, 2006 06:59 pm, operationsengineer1@yahoo.com wrote:
> what is the synatx to restore, using sql text, a
> schema within a db?
>
> i suspect it is something along the lines of:
>
> psql rails[insert correct symbol
> here]depot_development < create.sql
>
> i didn't see this addressed in the manual (at least
> the main page).

I don't think you can, unless you only dumped that schema.  Consult the
pg_dump and pg_restore manual pages for the more advanced backup formats
which allow you to selectively backup and restore select sets of tables,
including just those in particular schemas.

--
"Thank God we don't get all the government we pay for." -- Will Rogers


pgsql-novice by date:

Previous
From:
Date:
Subject: Backup Schema w/ SQL Text File
Next
From: Sean Davis
Date:
Subject: Re: Backup Schema w/ SQL Text File