File tree 2 files changed +20
-7
lines changed
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];
1327
1327
#endif /* __MINGW64__ */
1328
1328
#endif /* WIN32 */
1329
1329
1330
- /* EXEC_BACKEND defines */
1331
- #ifdef EXEC_BACKEND
1332
- #define NON_EXEC_STATIC
1333
- #else
1334
- #define NON_EXEC_STATIC static
1335
- #endif
1336
-
1337
1330
/* /port compatibility functions */
1338
1331
#include "port.h"
1339
1332
Original file line number Diff line number Diff line change 25
25
* ------- ------------------------------------------------
26
26
* 1) variable-length datatypes (TOAST support)
27
27
* 2) Datum type + support macros
28
+ * 3) miscellaneous
28
29
*
29
30
* NOTES
30
31
*
@@ -805,4 +806,23 @@ extern Datum Float8GetDatum(float8 X);
805
806
#define Float8GetDatumFast (X ) PointerGetDatum(&(X))
806
807
#endif
807
808
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
+
808
828
#endif /* POSTGRES_H */
You can’t perform that action at this time.
0 commit comments