Call Proceduta Cross DB in Postgresql

28 Views Asked by At

I want to call procedures cross databases in PostgreSql
I found dblink, but I'm trying to understand if it's also possible to call procedures with it
If not, how can it be done?

1

There are 1 best solutions below

1
Frank Heikens On

Yes, you can use db_link for this. You can execute any piece of SQL over db_link.

If you only need access to different tables on these external databases, you could use a foreign table as well. For this you have to install the postgres_fdw-extension.