Re: Create Public Schema - Mailing list pgsql-sql

From Mario Splivalo
Subject Re: Create Public Schema
Date
Msg-id 1132482908.8298.0.camel@localhost.localdomain
Whole thread Raw
In response to Create Public Schema  (<rsosnowski@cableone.net>)
List pgsql-sql
On Sat, 2005-11-19 at 20:03 -0700, rsosnowski@cableone.net wrote:
> Hello all,
> 
> I'm trying to create a schema that contains the default tables,
> functions, etc. of the public schema.  Using pgAdmin, when I create a
> schema, it is blank - has no associated aggregates, tables, etc.  How
> would I create additional schems within a database that mirror the
> public schema.
> 

I guess your best bet would be to manually create all the scripts for
your database/schema objects. Use pg_dump to create a 'database schema
snapshot', and then use pg_restore -L to create scripts for objects you
desire.
Mike



pgsql-sql by date:

Previous
From: Joost Kraaijeveld
Date:
Subject: Trigger / rule question
Next
From: Peter Eisentraut
Date:
Subject: Re: Is it possible to redirect an update/insert/delete to a different table?