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 [at] joeconway.com]
Sent: Wednesday, 11 August 2004 1:35 PM
To: Theo Galanakis
Cc: pgsql-sql [at] 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [SQL] ERROR: Cross-database references are not implemented - RES=
OLVED</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Thanks Joe. After I posted this message, I googled around=
until I realized when you mentioned below.</FONT>
</P>
<P><FONT SIZE=3D2>Theo</FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Joe Conway [<A HREF=3D"mailto:mail [at] joeconway.com">=
mailto:mail [at] joeconway.com</A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, 11 August 2004 1:35 PM</FONT>
<BR><FONT SIZE=3D2>To: Theo Galanakis</FONT>
<BR><FONT SIZE=3D2>Cc: pgsql-sql [at] postgresql.org</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [SQL] ERROR: Cross-database references are =
not implemented</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Theo Galanakis wrote:</FONT>
<BR><FONT SIZE=3D2>> How do I explicidly create a cross-database referen=
ce?</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Mind you these databases are on the same server.</F=
ONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> In MSSQL you could do that through enterprise manag=
er.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Any help would be appreciated.</FONT>
</P>
<P><FONT SIZE=3D2>You cannot do cross database references per se, but you c=
an use schemas, </FONT>
<BR><FONT SIZE=3D2>which roughly behave like individual databases do in MSS=
QL. See:</FONT>
<BR><FONT SIZE=3D2> <A HREF=3D"http://www.postgresql.org/docs/7=
..4/static/ddl-schemas.html" TARGET=3D"_blank">http://www.postgresql.org/doc=
s/7.4/static/ddl-schemas.html</A></FONT>
</P>
<P><FONT SIZE=3D2>If you really need cross-database queries, see contrib/db=
link (which </FONT>
<BR><FONT SIZE=3D2>would also work across servers), but it isn't as flexibl=
e as using schemas.</FONT>
</P>
<P><FONT SIZE=3D2>HTH,</FONT>
</P>
<P><FONT SIZE=3D2>Joe</FONT>
</P>
</BODY>
</HTML>
<table><tr><td bgcolor=3D#ffffff><font color=3D#000000>____________________=
__________________________________________________<br>This email, including=
attachments, is intended only for the addressee<br>and may be confidential=
, privileged and subject to copyright. If you<br>have received this email =
in error, please advise the sender and delete<br>it. If you are not the in=
tended recipient of this email, you must not<br>use, copy or disclose its c=
ontent to anyone. You must not copy or <br>communicate to others content t=
hat is confidential or subject to <br>copyright, unless you have the consen=
t of the content owner.<br></font></td></tr></table>
------_=_NextPart_001_01C47F58.442BB060--
