postgresql - Running a postgres query between two databases with conditions -


I have two postgrass databases on the same server.

I need to remove the records from a database and put them in another. This is my working query.