pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedAccessing objects over db-borders
2+ messages / 2 participants
[nested] [flat]
* Accessing objects over db-borders
@ 2005-02-04 11:00 KÖPFERL Robert <robert.koepferl@sonorys.at>
0 siblings, 1 reply; 2+ messages in thread
From: KÖPFERL Robert @ 2005-02-04 11:00 UTC (permalink / raw)
To: ; +Cc: pgsql-sql
Hi,
Consider one postmaster that manages multiple databases (logical names)
Is it possible (and how) to access a stored procedure or view/Table which
resides in DB aaa if your DB-connection has currently the context on DB bbb?
So: I login on db bbb as a user who has rights on both DBs (aaa,bbb). Can I
do a select on a table of DB aaa?
If this is possible I suspect referential integrity not to work, does it?
Thanks
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [despammed] Accessing objects over db-borders
@ 2005-02-04 11:34 Andreas Kretschmer <akretschmer@despammed.com>
parent: KÖPFERL Robert <robert.koepferl@sonorys.at>
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Kretschmer @ 2005-02-04 11:34 UTC (permalink / raw)
To: pgsql-sql
am 04.02.2005, um 12:00:17 +0100 mailte KÖPFERL Robert folgendes:
> Hi,
>
> Consider one postmaster that manages multiple databases (logical names)
>
> Is it possible (and how) to access a stored procedure or view/Table which
> resides in DB aaa if your DB-connection has currently the context on DB bbb?
Yes, take a look at dblink (contrib-package)
Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-02-04 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-04 11:00 Accessing objects over db-borders KÖPFERL Robert <robert.koepferl@sonorys.at>
2005-02-04 11:34 ` Andreas Kretschmer <akretschmer@despammed.com>
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