Re: Synonyms - Mailing list pgsql-sql

From hubert depesz lubaczewski
Subject Re: Synonyms
Date
Msg-id 20001031081622.A11314@gruby
Whole thread Raw
In response to Synonyms  ("Carl Shelbourne" <Carl.Shelbourne@marconi.com>)
List pgsql-sql
On Mon, Oct 30, 2000 at 01:17:24PM +0000, Carl Shelbourne wrote:
> * Is there a way of creating synonyms of tables within one database in another
> database in Postgres similar to the Informix CREATE SYNONYM?
> * If not and related to the post on 2000-10-28 by Sivagami, is there a way,
> within a select I can make a query from mulitple databases.  ( the usual
> DB.Table or DB:table or DB@table dont seem to work)

don't know how informix works, but why dont you just use a view?

create view synonym as select * from table; 

am i missing something?

depesz

-- 
hubert depesz lubaczewski
------------------------------------------------------------------------    najwspanialszą rzeczą jaką dało nam
nowoczesnespołeczeństwo,     jest niesamowita wręcz łatwość unikania kontaktów z nim ...
 


pgsql-sql by date:

Previous
From: Martin Christensen
Date:
Subject: Re: fetching rows
Next
From: Kovacs Zoltan Sandor
Date:
Subject: PLPGSQL examples