aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-20 17:08:49 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-20 17:08:49 -0400
commitc2bb287025189d93c8df16b28f2a3d9d07d25655 (patch)
tree276e84d15a501246d5fe735295133522f59bbdb2 /src/backend/access/gist
parent3d13867a2c0b0b9cd1215107d4d6aa94e975b33b (diff)
downloadpostgresql-c2bb287025189d93c8df16b28f2a3d9d07d25655.tar.gz
postgresql-c2bb287025189d93c8df16b28f2a3d9d07d25655.zip
Fix new GIST build code to work under CLOBBER_CACHE_ALWAYS.
Can't say if this fixes *all* cases, but at least we get through the "point" regression test now, which hyrax's last run did not. Report: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hyrax&dt=2020-09-19%2021%3A27%3A23
Diffstat (limited to 'src/backend/access/gist')
-rw-r--r--src/backend/access/gist/gistbuild.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/access/gist/gistbuild.c b/src/backend/access/gist/gistbuild.c
index 230625cf1e2..5ecc4c87d11 100644
--- a/src/backend/access/gist/gistbuild.c
+++ b/src/backend/access/gist/gistbuild.c
@@ -408,6 +408,7 @@ gist_indexsortbuild(GISTBuildState *state)
* replaced with the real root page at the end.
*/
page = palloc0(BLCKSZ);
+ RelationOpenSmgr(state->indexrel);
smgrextend(state->indexrel->rd_smgr, MAIN_FORKNUM, GIST_ROOT_BLKNO,
page, true);
state->pages_allocated++;