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

Skip to content

Commit 6ec7b0b

Browse files
committed
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced. Guillaume Lelarge
1 parent 8f36605 commit 6ec7b0b

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.142.4.11 2009/12/09 21:58:54 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.142.4.12 2010/07/01 14:10:42 rhaas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -5756,6 +5756,9 @@ copy_relation_data(Relation rel, SMgrRelation dst)
57565756

57575757
for (blkno = 0; blkno < nblocks; blkno++)
57585758
{
5759+
/* If we got a cancel signal during the copy of the data, quit */
5760+
CHECK_FOR_INTERRUPTS();
5761+
57595762
smgrread(src, blkno, buf);
57605763

57615764
/* XLOG stuff */

0 commit comments

Comments
 (0)
0