We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ecc4ff commit 9f9466cCopy full SHA for 9f9466c
pg_variables.c
@@ -47,7 +47,9 @@ PG_FUNCTION_INFO_V1(get_packages_and_variables);
47
PG_FUNCTION_INFO_V1(get_packages_stats);
48
49
extern void _PG_init(void);
50
+#if PG_VERSION_NUM < 150000
51
extern void _PG_fini(void);
52
+#endif
53
static void ensurePackagesHashExists(void);
54
static void getKeyFromName(text *name, char *key);
55
@@ -2959,6 +2961,7 @@ _PG_init(void)
2959
2961
ExecutorEnd_hook = variable_ExecutorEnd;
2960
2962
}
2963
2964
2965
/*
2966
* Unregister callback function when module unloads
2967
*/
@@ -2969,3 +2972,4 @@ _PG_fini(void)
2969
2972
UnregisterSubXactCallback(pgvSubTransCallback, NULL);
2970
2973
ExecutorEnd_hook = prev_ExecutorEnd;
2971
2974
2975
0 commit comments