Re: Create Public Schema

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Create Public Schema
Date: 2005-11-20 08:49:39
Message-ID: 20051120084939.GA1692@kaufbach.delug.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

rsosnowski(at)cableone(dot)net <rsosnowski(at)cableone(dot)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°

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joost Kraaijeveld 2005-11-20 09:18:00 Trigger / rule question
Previous Message JuanCri 2005-11-20 07:01:57 Re: query