aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-10-31 12:02:40 -0400
committerRobert Haas <rhaas@postgresql.org>2014-10-31 12:02:40 -0400
commit2bd9e412f92bc6a68f3e8bcb18e04955cc35001d (patch)
tree9a4a8dc45c5761aa0554d7f1ba255d5e599150b5 /src/include/utils/builtins.h
parent252e652edea80b948fbc9c3723183065e94d8480 (diff)
downloadpostgresql-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/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index fb1b4a42ddb..4e74d85d228 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -285,7 +285,7 @@ extern Datum current_schema(PG_FUNCTION_ARGS);
extern Datum current_schemas(PG_FUNCTION_ARGS);
/* numutils.c */
-extern int32 pg_atoi(char *s, int size, int c);
+extern int32 pg_atoi(const char *s, int size, int c);
extern void pg_itoa(int16 i, char *a);
extern void pg_ltoa(int32 l, char *a);
extern void pg_lltoa(int64 ll, char *a);