File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed
Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -1327,13 +1327,6 @@ typedef intptr_t sigjmp_buf[5];
13271327#endif /* __MINGW64__ */
13281328#endif /* WIN32 */
13291329
1330- /* EXEC_BACKEND defines */
1331- #ifdef EXEC_BACKEND
1332- #define NON_EXEC_STATIC
1333- #else
1334- #define NON_EXEC_STATIC static
1335- #endif
1336-
13371330/* /port compatibility functions */
13381331#include "port.h"
13391332
Original file line number Diff line number Diff line change 2525 * ------- ------------------------------------------------
2626 * 1) variable-length datatypes (TOAST support)
2727 * 2) Datum type + support macros
28+ * 3) miscellaneous
2829 *
2930 * NOTES
3031 *
@@ -805,4 +806,23 @@ extern Datum Float8GetDatum(float8 X);
805806#define Float8GetDatumFast (X ) PointerGetDatum(&(X))
806807#endif
807808
809+
810+ /* ----------------------------------------------------------------
811+ * Section 3: miscellaneous
812+ * ----------------------------------------------------------------
813+ */
814+
815+ /*
816+ * NON_EXEC_STATIC: It's sometimes useful to define a variable or function
817+ * that is normally static but extern when using EXEC_BACKEND (see
818+ * pg_config_manual.h). There would then typically be some code in
819+ * postmaster.c that uses those extern symbols to transfer state between
820+ * processes or do whatever other things it needs to do in EXEC_BACKEND mode.
821+ */
822+ #ifdef EXEC_BACKEND
823+ #define NON_EXEC_STATIC
824+ #else
825+ #define NON_EXEC_STATIC static
826+ #endif
827+
808828#endif /* POSTGRES_H */
You can’t perform that action at this time.
0 commit comments