X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90EA214B281D for ; Wed, 11 Aug 2004 01:06:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02135-10 for ; Wed, 11 Aug 2004 04:06:07 +0000 (GMT) Received: from angel.lonelyplanet.com.au (mail.lonelyplanet.com.au [202.147.44.168]) by svr1.postgresql.org (Postfix) with ESMTP id 9698414B281B for ; Wed, 11 Aug 2004 01:06:05 -0300 (ADT) Received: from shiva.au.lpint.net ([192.168.61.22]) by angel with InterScan Messaging Security Suite; Wed, 11 Aug 2004 13:53:27 +1000 Received: by shiva.au.lpint.net with Internet Mail Service (5.5.2656.59) id ; Wed, 11 Aug 2004 14:04:16 +1000 Message-ID: <82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net> From: Theo Galanakis To: "'pgsql-sql@postgresql.org'" Subject: Re: ERROR: Cross-database references are not implemented - Date: Wed, 11 Aug 2004 14:04:15 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C47F58.442BB060" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=EXCUSE_16, HTML_20_30, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200408/77 X-Sequence-Number: 18574 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C47F58.442BB060 Content-Type: text/plain 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. ------_=_NextPart_001_01C47F58.442BB060 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [SQL] ERROR: Cross-database references are not implemented - RES= OLVED

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 referen= ce?
>
> Mind you these databases are on the same server.
>
> In MSSQL you could do that through enterprise manag= er.
>
> Any help would be appreciated.

You cannot do cross database references per se, but you c= an use schemas,
which roughly behave like individual databases do in MSS= QL. See:
   http://www.postgresql.org/doc= s/7.4/static/ddl-schemas.html

If you really need cross-database queries, see contrib/db= link (which
would also work across servers), but it isn't as flexibl= e 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 in= tended recipient of this email, you must not
use, copy or disclose its c= ontent to anyone. You must not copy or
communicate to others content t= hat is confidential or subject to
copyright, unless you have the consen= t of the content owner.
------_=_NextPart_001_01C47F58.442BB060--