proposal: extend shm_mq to support more use cases

From: Ildus Kurbangaliev <i(dot)kurbangaliev(at)postgrespro(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: proposal: extend shm_mq to support more use cases
Date: 2017-11-01 13:24:16
Message-ID: 20171101162416.63074129@wp.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2017-11-01 14:13:38 Re: proposal: extend shm_mq to support more use cases
Previous Message Jeevan Chalke 2017-11-01 12:50:11 Re: Partition-wise aggregation/grouping