I have created trigger function that will try to insert data into remote database table like this:
db_res := dblink_exec('dbname=test user=test password=test host=localhost port=5432', 'INSERT INTO test (table, action) VALUES (''table'',''action'')');
When this trigger launches, it throws me this error:
syntax error (at or near: ",")
Why this is happening? How simple comma can cause this error?