mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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.
This commit is contained in:
@ -415,6 +415,7 @@ extern ErrorData *CopyErrorData(void);
|
||||
extern void FreeErrorData(ErrorData *edata);
|
||||
extern void FlushErrorState(void);
|
||||
extern void ReThrowError(ErrorData *edata) __attribute__((noreturn));
|
||||
extern void ThrowErrorData(ErrorData *edata);
|
||||
extern void pg_re_throw(void) __attribute__((noreturn));
|
||||
|
||||
extern char *GetErrorContextStack(void);
|
||||
|
Reference in New Issue
Block a user