Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand

From: RekGRpth <rekgrpth(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand
Date: 2020-02-14 15:23:18
Message-ID: CAPgh2mJrNN7SSs0H6Ak7bTiyMsXk9Onc7b5B9geb59=qBEqURA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

No, it wasn't. I listen in another connection and receive both
notifications but only after 10 seconds!
with bst regrds, Rek>pth

пт, 14 февр. 2020 г. в 20:20, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> PG Bug reporting form <noreply(at)postgresql(dot)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
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-02-14 15:36:32 Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand
Previous Message Tom Lane 2020-02-14 15:20:36 Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand