|
56 | 56 | * Portions Copyright (c) 1994, Regents of the University of California |
57 | 57 | * |
58 | 58 | * 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 $ |
60 | 60 | * |
61 | 61 | *------------------------------------------------------------------------- |
62 | 62 | */ |
@@ -461,6 +461,12 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, IndexTuple itup) |
461 | 461 | Sizepgspc; |
462 | 462 | Sizeitupsz; |
463 | 463 |
|
| 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 | + |
464 | 470 | npage=state->btps_page; |
465 | 471 | nblkno=state->btps_blkno; |
466 | 472 | last_off=state->btps_lastoff; |
|