[HACKERS] proposal: extend shm_mq to support more use cases

Поиск
Список
Период
Сортировка
От Ildus Kurbangaliev
Тема [HACKERS] proposal: extend shm_mq to support more use cases
Дата
Msg-id 20171101162416.63074129@wp.localdomain
обсуждение исходный текст
Ответы Re: [HACKERS] proposal: extend shm_mq to support more use cases
Список pgsql-hackers
Hello! Apparently the current version of shm_mq supports only one sender
and one receiver. I think it could be very useful to add possibility to
change senders and receivers. It could be achieved by adding methods
that remove sender or receiver for mq.

As one of actual use cases can be some extension that creates several
background workers so backends can communicate with them. At the
startup the extension will create two mq for each bgworker (one for
input data, one for output). When a backend wants to work with the
worker it connects to one mq as sender, and to other as receiver.
After some working with bgworker it disconnects from mqs and the 
worker becomes free for another backend. So the workers can act like a
cache, or keep some long connections with other services and so on.

-- 
---
Ildus Kurbangaliev
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Jeevan Chalke
Дата:
Сообщение: Re: [HACKERS] Partition-wise aggregation/grouping
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] proposal: extend shm_mq to support more use cases