10000 Allow ALTER TABLE .. SET TABLESPACE to be interrupted. · danielcode/postgres@b525073 · GitHub
[go: up one dir, main page]

Skip to content

Commit b525073

Browse files
committed
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced. Guillaume Lelarge
1 parent 2c0080a commit b525073

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.174.2.9 2009/12/09 21:58:42 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.174.2.10 2010/07/01 14:11:03 rhaas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -5863,6 +5863,9 @@ copy_relation_data(Relation rel, SMgrRelation dst)
58635863

58645864
for (blkno = 0; blkno < nblocks; blkno++)
58655865
{
5866+
/* If we got a cancel signal during the copy of the data, quit */
5867+
CHECK_FOR_INTERRUPTS();
5868+
58665869
smgrread(src, blkno, buf);
58675870

58685871
/* XLOG stuff */

0 commit comments

Comments
 (0)
0