Fix brown paper bag bug in 5c47c6546c413d5eb51c1626070a807026e6139d.
authorRobert Haas <rhaas@postgresql.org>
Tue, 19 Dec 2023 20:00:23 +0000 (15:00 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 19 Dec 2023 20:00:23 +0000 (15:00 -0500)
commit47f01d727e3a271bbff7d2f9db838e81d27bd495
treefab1d135a5eed61340a2e86c66b7549ab2359d96
parent7e1ce2b3de16dfbe1598cef060dfc8458522938a
Fix brown paper bag bug in 5c47c6546c413d5eb51c1626070a807026e6139d.

The previous logic failed to work for anything other than the first
segment of a relation.

Report by Jakub Wartak. Patch by me.

Discussion: http://postgr.es/m/CAKZiRmwd3KTNMQhm9Bv4oR_1uMehXroO6kGyJQkiw9DfM8cMwQ@mail.gmail.com
src/backend/storage/file/reinit.c