8000 Remove _PG_fini call · postgrespro/pg_variables@9f9466c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f9466c

Browse files
author
Maxim Orlov
committed
Remove _PG_fini call
Due to upstream commit ab02d702, _PG_fini was removed. To be consistent, we remove this particular call too.
1 parent 8ecc4ff commit 9f9466c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_variables.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ PG_FUNCTION_INFO_V1(get_packages_and_variables);
4747
PG_FUNCTION_INFO_V1(get_packages_stats);
4848

4949
extern void _PG_init(void);
50+
#if PG_VERSION_NUM < 150000
5051
extern void _PG_fini(void);
52+
#endif
5153
static void ensurePackagesHashExists(void);
5254
static void getKeyFromName(text *name, char *key);
5355

@@ -2959,6 +2961,7 @@ _PG_init(void)
29592961
ExecutorEnd_hook = variable_ExecutorEnd;
29602962
}
29612963

2964+
#if PG_VERSION_NUM < 150000
29622965
/*
29632966
* Unregister callback function when module unloads
29642967
*/
@@ -2969,3 +2972,4 @@ _PG_fini(void)
29692972
UnregisterSubXactCallback(pgvSubTransCallback, NULL);
29702973
ExecutorEnd_hook = prev_ExecutorEnd;
29712974
}
2975+
#endif

0 commit comments

Comments
 (0)
0