I have recently switched from MySQL to Postgres and am still is discovery mode.
In MySQL I could be connected to radius_db
and still run a query against main_db
.
However in Postgresql this doesn't seem possible.
radius_db=# SELECT COALESCE((SELECT UNIX_TIMESTAMP(expires_at) FROM main_db.device d WHERE d.id='123'), 0);
ERROR: relation "main_db.device" does not exist
LINE 1: ... COALESCE((SELECT UNIX_TIMESTAMP(expires_at) FROM main_db.de...
^
radius_db=#
Both radius_db
and main_db
belong to the same Schema (public). Is there a way to achieve this? Thank you