We use postgres_fdw and we have many servers created and many schema imported. Each time we need to refresh the data of an environment by another environment we need to manually update all the servers to link to the right server.
Is there a way we can generate the script of the foreign server creation and import schema for all the databases in a server?
Thank you