[HACKERS] proposal: extend shm_mq to support more use cases - Mailing list pgsql-hackers

From Ildus Kurbangaliev
Subject [HACKERS] proposal: extend shm_mq to support more use cases
Date
Msg-id 20171101162416.63074129@wp.localdomain
Whole thread Raw
Responses Re: [HACKERS] proposal: extend shm_mq to support more use cases
List 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 by date:

Previous
From: Jeevan Chalke
Date:
Subject: Re: [HACKERS] Partition-wise aggregation/grouping
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] proposal: extend shm_mq to support more use cases