gooderp18绿色标准版
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

38 líneas
1.1KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * backendid.h
  4. * POSTGRES backend id communication definitions
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/storage/backendid.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef BACKENDID_H
  15. #define BACKENDID_H
  16. /* ----------------
  17. * -cim 8/17/90
  18. * ----------------
  19. */
  20. typedef int BackendId; /* unique currently active backend identifier */
  21. #define InvalidBackendId (-1)
  22. extern PGDLLIMPORT BackendId MyBackendId; /* backend id of this backend */
  23. /* backend id of our parallel session leader, or InvalidBackendId if none */
  24. extern PGDLLIMPORT BackendId ParallelMasterBackendId;
  25. /*
  26. * The BackendId to use for our session's temp relations is normally our own,
  27. * but parallel workers should use their leader's ID.
  28. */
  29. #define BackendIdForTempRelations() \
  30. (ParallelMasterBackendId == InvalidBackendId ? MyBackendId : ParallelMasterBackendId)
  31. #endif /* BACKENDID_H */
上海开阖软件有限公司 沪ICP备12045867号-1