Re: creating tables that are visible across databases

From: Jeff Hoffmann <jeff(at)propertykey(dot)com>
To: mark(at)summersault(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: creating tables that are visible across databases
Date: 2001-04-20 21:18:21
Message-ID: 3AE0A79D.99D65D63@propertykey.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Mark Stosberg wrote:
>
> Hello,
>
> I'd like to create some tables that would visible across databases,
> much like the postgres system tables. These would be for "static" data,
> such as state and country codes, and geo-spatial data. I couldn't find
> this mentioned in the docs, but unless this feature of the system tables
> is magical, it appears to be possible. Did I miss an explanation in some
> docs, or could someone give me a pointer?
> Thanks!

you could create the tables using a template database, in which case
they would be created when you create a new database using that template
(look at "createdb -T" to see how this works). this may not be what
you're looking for because they wouldn't be shared across databases,
they would just be copied into the new database when it was created. i
don't think there's a way to have shared access to those tables.

--

Jeff Hoffmann
PropertyKey.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-04-20 21:34:32 Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Previous Message Tom Lane 2001-04-20 21:13:20 Re: creating tables that are visible across databases