gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

58 行
1.6KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * async.h
  4. * Asynchronous notification: NOTIFY, LISTEN, UNLISTEN
  5. *
  6. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/commands/async.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef ASYNC_H
  14. #define ASYNC_H
  15. #include <signal.h>
  16. #include "fmgr.h"
  17. /*
  18. * The number of SLRU page buffers we use for the notification queue.
  19. */
  20. #define NUM_ASYNC_BUFFERS 8
  21. extern bool Trace_notify;
  22. extern volatile sig_atomic_t notifyInterruptPending;
  23. extern Size AsyncShmemSize(void);
  24. extern void AsyncShmemInit(void);
  25. extern void NotifyMyFrontEnd(const char *channel,
  26. const char *payload,
  27. int32 srcPid);
  28. /* notify-related SQL statements */
  29. extern void Async_Notify(const char *channel, const char *payload);
  30. extern void Async_Listen(const char *channel);
  31. extern void Async_Unlisten(const char *channel);
  32. extern void Async_UnlistenAll(void);
  33. /* perform (or cancel) outbound notify processing at transaction commit */
  34. extern void PreCommit_Notify(void);
  35. extern void AtCommit_Notify(void);
  36. extern void AtAbort_Notify(void);
  37. extern void AtSubStart_Notify(void);
  38. extern void AtSubCommit_Notify(void);
  39. extern void AtSubAbort_Notify(void);
  40. extern void AtPrepare_Notify(void);
  41. extern void ProcessCompletedNotifies(void);
  42. /* signal handler for inbound notifies (PROCSIG_NOTIFY_INTERRUPT) */
  43. extern void HandleNotifyInterrupt(void);
  44. /* process interrupts */
  45. extern void ProcessNotifyInterrupt(void);
  46. #endif /* ASYNC_H */
上海开阖软件有限公司 沪ICP备12045867号-1