How to set up a foreign data wrapper in PostgreSQL to query a table in one database from another
towardsdatascience.com/how-to-