mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
SAtop unlogged build in neon_immedsync which is called by GIST for sorted index build
This commit is contained in:
@@ -3038,6 +3038,13 @@ neon_immedsync(SMgrRelation reln, ForkNumber forknum)
|
||||
break;
|
||||
|
||||
case RELPERSISTENCE_PERMANENT:
|
||||
if (stop_unlogged_build(InfoFromSMgrRel(reln), forknum))
|
||||
{
|
||||
mdclose(reln, forknum);
|
||||
/* use isRedo == true, so that we drop it immediately */
|
||||
mdunlink(InfoBFromSMgrRel(reln), forknum, true);
|
||||
resume_unlogged_build(); /* doesn't actually resume build, just release lock */
|
||||
}
|
||||
break;
|
||||
|
||||
case RELPERSISTENCE_TEMP:
|
||||
|
||||
Reference in New Issue
Block a user