From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: RekGRpth <rekgrpth@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand
Date: Fri, 14 Feb 2020 12:30:59 -0500
Message-ID: <2696.1581701459@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZg50MEY3N9co-9toSy5MvwWQSKvqyUut=RuYgukCMCWA@mail.gmail.com>
References: <16258-f5218e29662078f7@postgresql.org>
<16670.1581693636@sss.pgh.pa.us>
<CAPgh2mJrNN7SSs0H6Ak7bTiyMsXk9Onc7b5B9geb59=qBEqURA@mail.gmail.com>
<17339.1581694592@sss.pgh.pa.us>
<CAPgh2mKSuVrY-iCEU2PMRLT89E1fUSC86PbO6YHqrGRgFO_joA@mail.gmail.com>
<CAKFQuwZg50MEY3N9co-9toSy5MvwWQSKvqyUut=RuYgukCMCWA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
>> пт, 14 февр. 2020 г. в 20:36, Tom Lane <tgl@sss.pgh.pa.us>:
>>> Doesn't sound like a bug to me. The sending backend will only
>>> send out notifications when it goes idle
> Does a non-interactive psql session ever go idle mid-script?
Sure. "idle" here means that the backend is done with the current
command from the client. I think the OP's problem largely stems from
trying to do two transactions in one simple-query message, which is
an abuse of that feature to begin with. (We've discussed taking away
the ability to do that altogether, and while I've resisted that on
backwards-compatibility grounds, it might well happen someday.)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, rekgrpth@gmail.com
Subject: Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand
In-Reply-To: <2696.1581701459@sss.pgh.pa.us>
References: <16258-f5218e29662078f7@postgresql.org> <16670.1581693636@sss.pgh.pa.us> <CAPgh2mJrNN7SSs0H6Ak7bTiyMsXk9Onc7b5B9geb59=qBEqURA@mail.gmail.com> <17339.1581694592@sss.pgh.pa.us> <CAPgh2mKSuVrY-iCEU2PMRLT89E1fUSC86PbO6YHqrGRgFO_joA@mail.gmail.com> <CAKFQuwZg50MEY3N9co-9toSy5MvwWQSKvqyUut=RuYgukCMCWA@mail.gmail.com> <2696.1581701459@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox