Re: Prepare transaction doesn't mention NOTIFY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mark(at)inomial(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Prepare transaction doesn't mention NOTIFY
Date: 2017-10-27 14:59:00
Message-ID: 14803.1509116340@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

mark(at)inomial(dot)com writes:
> Hi, in prepare transaction documentation in PG10 and earlier, it says that
> you can't prepare a transaction with LISTEN or UNLISTEN but it doesn't
> mention NOTIFY.

Yup, that's an oversight --- fixed.

> I know this isn't the place to ask (and I'll never see the answer :) but I'm
> baffled by the lack of support for NOTIFY in prepared transactions,

The big problem is that we can't do anything at PREPARE time to guarantee
that the NOTIFY will succeed. Admittedly, the queue is large enough that
failure to insert the message isn't too likely, but "probably it will
work" is not the semantics we want from PREPARE.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message exclusion 2017-10-30 05:08:40 Typo in word "closest"
Previous Message fabiolaquijano 2017-10-26 17:23:01 Collate