aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/skipsupport.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2025-04-04 11:34:06 -0400
committerMelanie Plageman <melanieplageman@gmail.com>2025-04-04 11:34:06 -0400
commit64e7fa43a948a82f97e305f020f924c02671a434 (patch)
treef9a51893510e17f59e85f9155c4599afe4a74fb0 /src/backend/utils/adt/skipsupport.c
parent742317a80f89a5d6476c20b3d07330f3ec0d4357 (diff)
downloadpostgresql-64e7fa43a948a82f97e305f020f924c02671a434.tar.gz
postgresql-64e7fa43a948a82f97e305f020f924c02671a434.zip
Fix autoprewarm neglect of tablespaces
While prewarming blocks from a dump file, autoprewarm_database_main() mistakenly ignored tablespace when detecting the beginning of the next relation to prewarm. Because RelFileNumbers are only unique within a tablespace, autoprewarm could miss prewarming blocks from a relation with the same RelFileNumber in a different tablespace. Though this situation is likely rare in practice, it's best to make the code correct. Do so by explicitly checking for the RelFileNumber when detecting a new relation. Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/97c36982-603b-494a-95f4-aaf2a12ac27e%40iki.fi
Diffstat (limited to 'src/backend/utils/adt/skipsupport.c')
0 files changed, 0 insertions, 0 deletions