From 2bd9e412f92bc6a68f3e8bcb18e04955cc35001d Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 31 Oct 2014 12:02:40 -0400 Subject: 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. --- src/backend/utils/adt/numutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/utils/adt/numutils.c') diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c index ca5a8a576cb..1d133634e11 100644 --- a/src/backend/utils/adt/numutils.c +++ b/src/backend/utils/adt/numutils.c @@ -34,7 +34,7 @@ * overflow. */ int32 -pg_atoi(char *s, int size, int c) +pg_atoi(const char *s, int size, int c) { long l; char *badp; -- cgit v1.2.3