mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
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
This commit is contained in:
@ -408,6 +408,7 @@ gist_indexsortbuild(GISTBuildState *state)
|
|||||||
* replaced with the real root page at the end.
|
* replaced with the real root page at the end.
|
||||||
*/
|
*/
|
||||||
page = palloc0(BLCKSZ);
|
page = palloc0(BLCKSZ);
|
||||||
|
RelationOpenSmgr(state->indexrel);
|
||||||
smgrextend(state->indexrel->rd_smgr, MAIN_FORKNUM, GIST_ROOT_BLKNO,
|
smgrextend(state->indexrel->rd_smgr, MAIN_FORKNUM, GIST_ROOT_BLKNO,
|
||||||
page, true);
|
page, true);
|
||||||
state->pages_allocated++;
|
state->pages_allocated++;
|
||||||
|
Reference in New Issue
Block a user