Skip to content

Commit

Permalink
Reflect pgstat_fetch_stat_beentry() rename (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcapet authored Sep 15, 2023
1 parent 9848025 commit 8f57d08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,11 @@ static void get_pg_stat_activity(pg_stat_activity_list *pg_stats)

for (i = 1; i <= num_backends; ++i)
{
#if PG_VERSION_NUM >= 160000
PgBackendStatus *beentry = pgstat_get_local_beentry_by_index(i);
#else
PgBackendStatus *beentry = pgstat_fetch_stat_beentry(i);
#endif
if (beentry && beentry->st_procpid != MyProcPid)
{
pg_stat_activity ps = {beentry->st_procpid, 0,};
Expand Down

0 comments on commit 8f57d08

Please sign in to comment.