Re: Allow LISTEN on patterns

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Allow LISTEN on patterns
Дата
Msg-id CAJ7c6TPaCKsaONXak3VDmvgex7r0-WAk2AJ+YyZyZK=ktCrgfA@mail.gmail.com
обсуждение исходный текст
Ответ на Allow LISTEN on patterns  (Quan Zongliang <quanzongliang@yeah.net>)
Ответы Re: Allow LISTEN on patterns
Список pgsql-hackers
Hi,

> I implemented a LISTEN command that supports matching names in the LIKE
> format.

The overall idea seems reasonable. It would be nice to have such a
feature as long as it doesn't affect the performance of the existing
applications. I think we should discuss particular semantics though.
For instance, if I do:

```
LISTEN aaafoo;
LISTEN aaabar;
UNLISTEN aaa%;
```

Should I:

A. be unsubscribed from aaafoo and aaabar since both match aaa% or
B. UNLISTEN should have no effect since I never subscribed to aaa% explicitly?

Personally I would expect A, but I'm not sure how many people will agree.

-- 
Best regards,
Aleksander Alekseev



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