you cannot access other db with straight SQL in postgresql (and as far as I know in oracle too)
in postgresql there is contrib module dblink which can help it, but not doing synonyms
if you mean schemas than it can be achieved almost the same as synonyms with Schema Search Path
You can use dblinks in Postgresql, they are supported in a contrib package, which is also available on windows (v 8.0 only).
Because in Oracle you are using a synonym to hide a dblink.
What follows is an example taken from the docs:
SELECT *
FROM dblink('dbname=template1', 'select proname, prosrc from pg_proc')
AS t1(proname name, prosrc text)
WHERE proname LIKE 'bytea%';
The dblink function executes a remote query (see contrib/dblink). It is declared to return record since it might be used for any kind of query. The actual column set must be specified in the calling query so that the parser knows, for example, what * should expand to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.