pgsql: Use actual backend IDs in pg_stat_get_backend_subxact().

2023-08-30 Thread Nathan Bossart
Use actual backend IDs in pg_stat_get_backend_subxact(). Unlike the other pg_stat_get_backend* functions, pg_stat_get_backend_subxact() looks up the backend entry by using its integer argument as a 1-based index in an internal array. The other functions look for the entry with the matching sessio

pgsql: Use actual backend IDs in pg_stat_get_backend_subxact().

2023-08-30 Thread Nathan Bossart
Use actual backend IDs in pg_stat_get_backend_subxact(). Unlike the other pg_stat_get_backend* functions, pg_stat_get_backend_subxact() looks up the backend entry by using its integer argument as a 1-based index in an internal array. The other functions look for the entry with the matching sessio