diff options
author | Robert Haas <rhaas@postgresql.org> | 2014-10-31 12:02:40 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2014-10-31 12:02:40 -0400 |
commit | 2bd9e412f92bc6a68f3e8bcb18e04955cc35001d (patch) | |
tree | 9a4a8dc45c5761aa0554d7f1ba255d5e599150b5 /src/backend/utils/adt/numutils.c | |
parent | 252e652edea80b948fbc9c3723183065e94d8480 (diff) | |
download | postgresql-2bd9e412f92bc6a68f3e8bcb18e04955cc35001d.tar.gz postgresql-2bd9e412f92bc6a68f3e8bcb18e04955cc35001d.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
-rw-r--r-- | src/backend/utils/adt/numutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |