I am trying to find out how to use a trigger function on a table to copy any inserted row to a remote PG server.
ie:
Row X is inserted into TableX in DB1 on server1....TableX trigger function fires and contacts DB2 on server2 and inserts the row into TableY on server2.
I've looked around and can't see to find this. Essentially I need to know how to write to a remote DB server from within a trigger function.
This is not replication, I'm not interested in a full blown trigger based replication solution.