Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand
Date
Msg-id 16670.1581693636@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifiesafter CommitTransactionCommand  (RekGRpth <rekgrpth@gmail.com>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> psql -c "begin;select pg_notify('channel', concat_ws(' = ', 'a',
> clock_timestamp()::text));commit;select pg_sleep(10);begin;select
> pg_notify('channel', concat_ws(' = ', 'b',
> clock_timestamp()::text));commit;select now(), clock_timestamp();"

I think the main reason why this isn't reporting any notifications
is that you forgot to issue a LISTEN.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Arseny Sher
Date:
Subject: Re: ERROR: subtransaction logged without previous top-level txn record
Next
From: RekGRpth
Date:
Subject: Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifiesafter CommitTransactionCommand