Skip to content

Commit e8cde16

Browse files
author
Marina Polyakova
committed
Rename some support functions for pgstat* views.
See the commit 8dfa37b797843a83a5756ea3309055e8953e1a86 (Rename some support functions for pgstat* views.) in PostgreSQL 16.
1 parent db202ed commit e8cde16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_query_state.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ search_be_status(int pid)
365365

366366
for (beid = 1; beid <= pgstat_fetch_stat_numbackends(); beid++)
367367
{
368+
#if PG_VERSION_NUM >= 160000
369+
PgBackendStatus *be_status = pgstat_get_beentry_by_backend_id(beid);
370+
#else
368371
PgBackendStatus *be_status = pgstat_fetch_stat_beentry(beid);
372+
#endif
369373

370374
if (be_status && be_status->st_procpid == pid)
371375
return be_status;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy