Re: Create Public Schema - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: Create Public Schema
Date
Msg-id 20051120084939.GA1692@kaufbach.delug.de
Whole thread Raw
In response to Create Public Schema  (<rsosnowski@cableone.net>)
List pgsql-sql
rsosnowski@cableone.net <rsosnowski@cableone.net> schrieb:

> 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

1. make a dump from the public-schema
2. edit the dump and change 'public' to 'foobar' (the new schema-name)
3. restore the schema from dump

Now you have a exactly copy from 'public' with name 'foobar'.



HTH, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From:
Date:
Subject: Create Public Schema
Next
From: Joost Kraaijeveld
Date:
Subject: Trigger / rule question