diff options
author | Andres Freund <andres@anarazel.de> | 2022-04-16 12:13:31 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-04-16 14:44:58 -0700 |
commit | 4a736a161c306fcfed970e6b649f2f03f465ac24 (patch) | |
tree | d0b93ecb10a1ef84160726e13a150282bbb70bf0 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 9f4f0a0dad4c7422a97d94e4051c08ec6d181dd6 (diff) | |
download | postgresql-4a736a161c306fcfed970e6b649f2f03f465ac24.tar.gz postgresql-4a736a161c306fcfed970e6b649f2f03f465ac24.zip |
pgstat: Use correct lock level in pgstat_drop_all_entries().
Previously we didn't, which lead to an assertion failure when resetting
partially loaded statistics. This was encountered on the buildfarm, for
as-of-yet unknown reasons.
Ttighten up a validity check when reading the stats file, verifying 'E'
signals the end of the file (rather than just stopping reading). That's then
used in a test appending to the stats file that crashed before the fix in
pgstat_drop_all_entries().
Reported by buildfarm animals mylodon and kestrel, via Tom Lane.
Discussion: https://postgr.es/m/1656446.1650043715@sss.pgh.pa.us
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions