Re: ERROR: Cross-database references are not implemented -

From: Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au>
To: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: ERROR: Cross-database references are not implemented -
Date: 2004-08-11 04:04:15
Message-ID: 82E30406384FFB44AFD1012BAB230B55037D04F9@shiva.au.lpint.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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(at)joeconway(dot)com]
Sent: Wednesday, 11 August 2004 1:35 PM
To: Theo Galanakis
Cc: pgsql-sql(at)postgresql(dot)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.

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2004-08-11 04:56:25 Wierded error in recursive function; debugging ideas?
Previous Message Joe Conway 2004-08-11 03:35:01 Re: ERROR: Cross-database references are not implemented