Re: [GENERAL] Create Action for psql when NOTIFY Recieved

Поиск
Список
Период
Сортировка
Искать
От
Nico Williams
Тема
Re: [GENERAL] Create Action for psql when NOTIFY Recieved
Дата
Msg-id
20170904030237.GE3281@localhost
Ответ на
Список
Дерево обсуждения
[GENERAL] Create Action for psql when NOTIFY Recieved Jerry Regan <jerry.regan@concertoglobalresources.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Nico Williams <nico@cryptonector.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Steve Atkins <steve@blighty.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Nico Williams <nico@cryptonector.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Steve Atkins <steve@blighty.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Nico Williams <nico@cryptonector.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved "David G. Johnston" <david.g.johnston@gmail.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Jerry Regan <jerry.regan@concertoglobalresources.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Nico Williams <nico@cryptonector.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Nico Williams <nico@cryptonector.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Jerry Regan <jerry.regan@concertoglobalresources.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Stuart Bishop <stuart@stuartbishop.net>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Jerry Regan <jerry.regan@concertoglobalresources.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved "David G. Johnston" <david.g.johnston@gmail.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved Jerry Regan <jerry.regan@concertoglobalresources.com>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved "Daniel Verite" <daniel@manitou-mail.org>
Re: [GENERAL] Create Action for psql when NOTIFY Recieved John McKown <john.archie.mckown@gmail.com>
On Sun, Sep 03, 2017 at 05:37:57PM -0500, Nico Williams wrote:
> What would it take to have pqasyncnotifier [0] adopted by PostgreSQL?

Maybe it should be named pqasynclisterner.

A \wait command for psql could do the same thing.  I could probably
write such a patch at some point if there's interest, something like:

  \wait [[N] [statement]]

that waits for N NOTIFYies (or forever if N is -1), perhaps always
printing the payload, but with newlines escaped (or truncated at
newlines) to avoid needing options, and runs a statement if provided.

Nico
-- 

В списке pgsql-general по дате отправления
От: Nico Williams
Дата:
От: Stefan Wagner
Дата:
Сообщение: [GENERAL] Undefined Reference
FAQ