pqmq.h 748 B

123456789101112131415161718192021222324
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pqmq.h
  4. * Use the frontend/backend protocol for communication over a shm_mq
  5. *
  6. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/libpq/pqmq.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef PQMQ_H
  14. #define PQMQ_H
  15. #include "lib/stringinfo.h"
  16. #include "storage/shm_mq.h"
  17. extern void pq_redirect_to_shm_mq(dsm_segment *seg, shm_mq_handle *mqh);
  18. extern void pq_set_parallel_leader(pid_t pid, BackendId backend_id);
  19. extern void pq_parse_errornotice(StringInfo str, ErrorData *edata);
  20. #endif /* PQMQ_H */