pgsql: Add information about "generation" when dropping twice pgstats e - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add information about "generation" when dropping twice pgstats e
Date
Msg-id E1ukAes-001J33-20@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add information about "generation" when dropping twice pgstats entry

Dropping twice a pgstats entry should not happen, and the error report
generated was missing the "generation" counter (tracking when an entry
is reused) that has been added in 818119afccd3.

Like d92573adcb02, backpatch down to v15 where this information is
useful to have, to gather more information from instances where the
problem shows up.  A report has shown that this error path has been
reached on a standby based on 17.3, for a relation stats entry and an
OID close to wraparound.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/CAN4RuQvYth942J2+FcLmJKgdpq6fE5eqyFvb_PuskxF2eL=Wzg@mail.gmail.com
Backpatch-through: 15

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bdda6ba30cbef00a6eddbe9f956a7b82bb2c7720

Modified Files
--------------
src/backend/utils/activity/pgstat_shmem.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Jacob Champion
Date:
Subject: pgsql: meson: Fix install-quiet after clean
Next
From: Etsuro Fujita
Date:
Subject: pgsql: Disallow collecting transition tuples from child foreign tables.