Add pgstat_fetch_stat_local_beentry in pg_version_compat

pgstat_fetch_stat_local_beentry has been renamed to
pgstat_get_local_beentry_by_index in PG16.0

Relevant PG commit:
8dfa37b797
8dfa37b797843a83a5756ea3309055e8953e1a86
pull/7201/head
naisila 2023-09-13 14:55:17 +03:00
parent 7c0b289761
commit ef09615e9d
No known key found for this signature in database
GPG Key ID: A824BA9862D73E6D
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ get_guc_variables_compat(int *gucCount)
#define object_ownercheck(a, b, c) object_ownercheck(a, b, c)
#define object_aclcheck(a, b, c, d) object_aclcheck(a, b, c, d)
#define pgstat_fetch_stat_local_beentry(a) pgstat_get_local_beentry_by_index(a)
#else
#include "catalog/pg_class_d.h"