From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Support frontend-backend protocol communication using a shm_mq. |
Date: | 2014-10-31 16:47:41 |
Message-ID: | E1XkFMT-0000Ze-Db@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Support frontend-backend protocol communication using a shm_mq.
A background worker can use pq_redirect_to_shm_mq() to direct protocol
that would normally be sent to the frontend to a shm_mq so that another
process may read them.
The receiving process may use pq_parse_errornotice() to parse an
ErrorResponse or NoticeResponse from the background worker and, if
it wishes, ThrowErrorData() to propagate the error (with or without
further modification).
Patch by me. Review by Andres Freund.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/2bd9e412f92bc6a68f3e8bcb18e04955cc35001d
Modified Files
--------------
src/backend/libpq/Makefile | 2 +-
src/backend/libpq/pqcomm.c | 98 ++++++++------
src/backend/libpq/pqmq.c | 261 ++++++++++++++++++++++++++++++++++++++
src/backend/utils/adt/numutils.c | 2 +-
src/backend/utils/error/elog.c | 51 ++++++++
src/include/libpq/libpq.h | 36 ++++--
src/include/libpq/pqmq.h | 22 ++++
src/include/utils/builtins.h | 2 +-
src/include/utils/elog.h | 1 +
9 files changed, 428 insertions(+), 47 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2014-11-01 13:22:08 | Re: pgsql: Oops, I fumbled the backpatch of pg_upgrade changes. |
Previous Message | Peter Eisentraut | 2014-10-31 12:15:02 | Re: pgsql: doc: Wording and formatting improvements in new logical decoding |
From | Date | Subject | |
---|---|---|---|
Next Message | Fabrízio de Royes Mello | 2014-10-31 16:56:14 | Re: CREATE IF NOT EXISTS INDEX |
Previous Message | Adam Brightwell | 2014-10-31 16:46:15 | Re: CREATE IF NOT EXISTS INDEX |