Re: Discussion on a LISTEN-ALL syntax

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Discussion on a LISTEN-ALL syntax
Дата
Msg-id 782541.1734755009@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Discussion on a LISTEN-ALL syntax  (Vik Fearing <vik@postgresfriends.org>)
Ответы Re: Discussion on a LISTEN-ALL syntax
Список pgsql-hackers
Vik Fearing <vik@postgresfriends.org> writes:
> Could I perhaps propose a sort of wildmat[1] syntax?
> The above sequence could be expressed simply as:
>      LISTEN *,!foo.*,foo.bar.*

That doesn't absolve you from having to say what happens if the
user then issues another "LISTEN zed" or "UNLISTEN foo.bar.baz"
command.  We can't break the existing behavior that "LISTEN foo"
followed by "LISTEN bar" results in listening to both channels.
So on the whole this seems like it just adds complexity without
removing any.  I'm inclined to limit things to one pattern per
LISTEN/UNLISTEN command, with more complex behaviors reached
by issuing a sequence of commands.

            regards, tom lane



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