I'm going to guess that the answer is "no" based on the below error message (and this Google result), but is there anyway to perform a cross-database query using PostgreSQL?
databaseA=# select * from databaseB.public.someTableName;
ERROR: cross-database references are not implemented:
"databaseB.public.someTableName"
I'm working with some data that is partitioned across two databases although data is really shared between the two (userid columns in one database come from the users
table in the other database). I have no idea why these are two separate databases instead of schema, but c'est la vie...
postgresql-contrib
beforedblink
? Orpostgresql-contrib
includesdblink
? And then the OP's query will work, or do you have to query it differently? – Guildhall