I need to insert some info I’m reading from a database into a table that belongs to a different one.
I have my info in a RECORD variable, let’s call it my_row.
Obviously when I try
SELECT dblink_exec('INSERT INTO remote_table VALUES (my_row.*)');
it doesn’t recognize who my_row is.
What other options do I have?
Here’s one option: