Improved interrupt handling during index creation

This commit is contained in:
Andrew Kane
2022-01-29 19:50:03 -08:00
parent 40f65dc8ba
commit c5bec2a534
2 changed files with 4 additions and 0 deletions

View File

@@ -228,6 +228,9 @@ InsertTuples(Relation index, IvfflatBuildState * buildstate, ForkNumber forkNum)
for (i = 0; i < buildstate->centers->length; i++)
{
/* Can take a while, so ensure we can interrupt */
CHECK_FOR_INTERRUPTS();
buf = IvfflatNewBuffer(index, forkNum);
IvfflatInitPage(index, &buf, &page, &state);