Re: Where is PLbash ??

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Where is PLbash ??
Дата
Msg-id 1744.1025098160@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Where is PLbash ??  (Friedrich Dodt <fdodt@web.de>)
Список pgsql-interfaces
Friedrich Dodt <fdodt@web.de> writes:
> So, what is the weakness of my strategy? Is there a
> "transaction-unsafety risk" in this case?

Well, the most obvious point is that you're firing the notification off
before your own transaction has committed.  The receiving process might
look at the table to see what to do, not find anything visible, and go
back to sleep before you are able to commit.

NOTIFY/LISTEN avoids this pitfall because the notify isn't sent until commit.
        regards, tom lane




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Friedrich Dodt
Дата:
Сообщение: Re: Where is PLbash ??
Следующее
От: "Jamie Blacoe"
Дата:
Сообщение: unsubscribe