Re: how to refer to tables in another database( or schema)

From: Mark Stosberg <mark(at)summersault(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: Jiaqing <jjw72(at)swbell(dot)net>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to refer to tables in another database( or schema)
Date: 2002-08-25 21:45:36
Message-ID: Pine.BSF.4.44.0208251642130.78713-100000@nollie.summersault.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 19 Aug 2002, Stephan Szabo wrote:

> On Mon, 19 Aug 2002, Jiaqing wrote:
>
> > Hello,
> > I'm still new here and new to PostgreSQL, I'd like to know that after I
> > have created two databases on my site, such as one is called backend, and
> > another one is called admin, how do I refer(query) the table from backend
> > while I'm connected to admin database, or is it possible to do that in
> > PostgreSQL? any answer is appreciated.
>
> In addition to previous answers (dblink related), in 7.3 schemas will
> be implemented and you may be able to use one database with two schemas
> in which case normal sql should work. This isn't out yet, so it's a
> future concern.

One problem space that I think either of these solutions might address
is the issue of having static "country code" and "state code" tables
reproduced on many databases throughout an installation. Would anyone
recommend either of these solutions, or another one, for addressing this
issue?

I'm not looking forward to the day when a new country appears,
and I have to find all the places I have country code lists to add it.
:)

-mark

http://mark.stosberg.com/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-08-26 00:31:12 Re: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Previous Message Mark Stosberg 2002-08-25 21:35:08 Re: Separating data sets in a table