aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2024-03-25 19:58:10 -0700
committerAndres Freund <andres@anarazel.de>2024-03-25 20:20:34 -0700
commit408209d6a9ae90a822edd48ce3c173b8b7e04ab7 (patch)
treeb68a0fc28cede3deedcfed74fc7a2e9641d0ce58 /contrib/postgres_fdw/postgres_fdw.c
parent90677b52126af98d40676cd379b56b52e1428188 (diff)
downloadpostgresql-408209d6a9ae90a822edd48ce3c173b8b7e04ab7.tar.gz
postgresql-408209d6a9ae90a822edd48ce3c173b8b7e04ab7.zip
Avoid edge case in pg_visibility test with small shared_buffers
Since 82a4edabd27 we can bulk extend relations. The bulk relation extension logic has a heuristic component. Normally the heurstic does not trigger in the occasionally-failing test case, as the relation is only extended once. But with very small shared_buffers the limits for the number of buffers pinned at once prevent the extension from happening at once. With the second "bulk" extension, the heuristic kicks in, and the relation ends up one block bigger. That's ok from a correctness perspective, but changes the results of the test query due to one additional block. We discussed a few more expansive fixes, but for now have decided to avoid this by making the table a bit smaller. Author: Heikki Linnakangas <hlinnaka@iki.fi> Reported-by: Discussion: https://postgr.es/m/29c74104-210b-ef39-2522-27a6aa7a704f@iki.fi Discussion: https://postgr.es/m/20230916000011.2ugpkkkp7bpp4cfh@awork3.anarazel.de Backpatch: 16-, where the new relation extension logic was added
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions