From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx]
On Behalf Of David G. Johnston On Thu, Jul 28, 2016 at 10:29 AM, Markus Kolb <markus.kolb+postgres@xxxxxxxxxxxx> wrote:
" dblink executes a query (usually a SELECT, but it can be any SQL statement that returns rows) in a remote database. " As defined in the dblink docs your query isn't supported - its doesn't return rows. I don't know the interaction that makes the separate executions succeed by I'd advise simply bypassing the
issue and doing: WHERE {3} is SELECT pg_notify('{2}','{UPDATE NOTIFY}), pg_notify('{3}','{DELETE NOTIFY}'); Not tested and I've never used NOTIFY but the select makes it return rows. I'm not positive how execution order plays out here, you may want to try "VALUES()" instead of multiple columns. David J. Well, “ Regards, Igor |