One technique:
create a rule (trigger) that will raise a database event. Your "language C'' function will be an stand alone executable that listens for the event and processes the data. You would typically want the primary key of the record passed as the event description. The nice additional feature is the process is asynchronous; your transaction in the main database will not be stalled while the data is transmitted to Postgres. The bad part is that is asynchronous......

You will not know in the Ingres transaction if the transfer was successful. It would have to be managed as a separate function.