pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Create Public Schema
3+ messages / 3 participants
[nested] [flat]

* Create Public Schema
@ 2005-11-20 03:03 rsosnowski@cableone.net
  2005-11-20 08:49 ` Re: Create Public Schema Andreas Kretschmer <akretschmer@spamfence.net>
  2005-11-20 10:35 ` Re: Create Public Schema Mario Splivalo <mario.splivalo@mobart.hr>
  0 siblings, 2 replies; 3+ messages in thread

From: rsosnowski@cableone.net @ 2005-11-20 03:03 UTC (permalink / raw)
  To: pgsql-sql

Hello all,<BR>
<BR>
I'm trying to create a schema that contains the default tables, functions, etc.&nbsp;of the public schema.&nbsp; Using pgAdmin, when I create a schema, it is blank - has no associated aggregates, tables, etc.&nbsp; How would I create additional schems within a database that mirror the public schema.<BR>
<BR>
Thanks....Rob<BR>
<BR>



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Create Public Schema
  2005-11-20 03:03 Create Public Schema rsosnowski@cableone.net
@ 2005-11-20 08:49 ` Andreas Kretschmer <akretschmer@spamfence.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Andreas Kretschmer @ 2005-11-20 08:49 UTC (permalink / raw)
  To: 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°



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Create Public Schema
  2005-11-20 03:03 Create Public Schema rsosnowski@cableone.net
@ 2005-11-20 10:35 ` Mario Splivalo <mario.splivalo@mobart.hr>
  1 sibling, 0 replies; 3+ messages in thread

From: Mario Splivalo @ 2005-11-20 10:35 UTC (permalink / raw)
  To: rsosnowski@cableone.net; +Cc: 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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-11-20 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-20 03:03 Create Public Schema rsosnowski@cableone.net
2005-11-20 08:49 ` Andreas Kretschmer <akretschmer@spamfence.net>
2005-11-20 10:35 ` Mario Splivalo <mario.splivalo@mobart.hr>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox