pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: ERROR: Cross-database references are not implemented -
Date: Wed, 11 Aug 2004 14:04:15 +1000
Message-ID: <82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net> (raw)


Thanks Joe. After I posted this message, I googled around until I realized
when you mentioned below.

Theo

-----Original Message-----
From: Joe Conway [mailto:mail@joeconway.com] 
Sent: Wednesday, 11 August 2004 1:35 PM
To: Theo Galanakis
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] ERROR: Cross-database references are not implemented


Theo Galanakis wrote:
> How do I explicidly create a cross-database reference?
> 
> Mind you these databases are on the same server.
> 
> In MSSQL you could do that through enterprise manager.
> 
> Any help would be appreciated.

You cannot do cross database references per se, but you can use schemas, 
which roughly behave like individual databases do in MSSQL. See:
   http://www.postgresql.org/docs/7.4/static/ddl-schemas.html

If you really need cross-database queries, see contrib/dblink (which 
would also work across servers), but it isn't as flexible as using schemas.

HTH,

Joe


______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.

view thread (3+ messages)

Message-ID: <82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net>
Permalink:  ../82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net/
Also on:    postgresql.org/message-id/82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net

 · 

reply

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: Theo.Galanakis@lonelyplanet.com.au
  Subject: Re: ERROR: Cross-database references are not implemented -
  In-Reply-To: <82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net>
  References: <82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net>

* 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