From: Tom Lane <tgl@sss.pgh.pa.us>
To: mark@summersault.com
Cc: pgsql-sql@postgresql.org
Subject: Re: creating tables that are visible across databases
Date: Fri, 20 Apr 2001 17:13:20 -0400
Message-ID: <28381.987801200@sss.pgh.pa.us> (raw)
In-Reply-To: <3AE09E0F.FECB955D@summersault.com>
References: <3AE09E0F.FECB955D@summersault.com>
Mark Stosberg <mark@summersault.com> writes:
> 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.
Unfortunately, it is magic ... see IsSharedSystemRelationName() for more
info. Possibly you could hack that routine to allow certain other names
to be considered shared.
It looks to me like some of the uses of IsSharedSystemRelationName
could/should be replaced by examining pg_class.relisshared, but in other
places it's really necessary to determine sharedness with nothing but a
relname to go on.
This will all need to be rethought when we implement schemas, anyway...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mark@summersault.com
Subject: Re: creating tables that are visible across databases
In-Reply-To: <28381.987801200@sss.pgh.pa.us>
References: <3AE09E0F.FECB955D@summersault.com> <28381.987801200@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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