Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f61924

Browse files
committed
Add a CHECK_FOR_INTERRUPTS() in _bt_buildadd(). This fixes problem
with not responding to query cancel during the last stage of btree indexcreation.
1 parent0ebf1cc commit9f61924

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/backend/access/nbtree/nbtsort.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* Portions Copyright (c) 1994, Regents of the University of California
5757
*
5858
* IDENTIFICATION
59-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.99 2006/03/05 15:58:21 momjian Exp $
59+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.100 2006/03/10 20:18:15 tgl Exp $
6060
*
6161
*-------------------------------------------------------------------------
6262
*/
@@ -461,6 +461,12 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, IndexTuple itup)
461461
Sizepgspc;
462462
Sizeitupsz;
463463

464+
/*
465+
* This is a handy place to check for cancel interrupts during the
466+
* btree load phase of index creation.
467+
*/
468+
CHECK_FOR_INTERRUPTS();
469+
464470
npage=state->btps_page;
465471
nblkno=state->btps_blkno;
466472
last_off=state->btps_lastoff;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp