Re: Suggestions on message transfer among backends

From: Euler Taveira <euler(at)timbira(dot)com(dot)br>
To: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Suggestions on message transfer among backends
Date: 2019-03-11 23:53:28
Message-ID: CAHE3wgiUmLyA54qKar=eMbfCEJJOrgYKrffWX0hv0euNPADZnw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em seg, 11 de mar de 2019 às 10:36, Andy Fan
<zhihui(dot)fan1213(at)gmail(dot)com> escreveu:
>
> I need some function which requires some message exchange among different back-ends (connections).
> specially I need a shared hash map and a message queue.
>
It seems you are looking for LISTEN/NOTIFY. However, if it is part of
a complex solution, a background worker with shared memory access is
the way to go.

--
Euler Taveira Timbira -
http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-03-12 00:03:40 Use nanosleep(2) in pg_usleep, if available?
Previous Message David G. Johnston 2019-03-11 22:26:03 Re: proposal: variadic argument support for least, greatest function