aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-07-01 14:10:21 +0000
committerRobert Haas <rhaas@postgresql.org>2010-07-01 14:10:21 +0000
commitc6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f (patch)
tree203dc4581553ce1c4e2a05424b155d69b3221184 /src
parentc37e0096787cc83b7f40aaff390238ae4662c0c4 (diff)
downloadpostgresql-c6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f.tar.gz
postgresql-c6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f.zip
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced. Guillaume Lelarge
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/tablecmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 18e2f571283..2ed8125fd6b 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.330 2010/04/28 16:10:41 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.331 2010/07/01 14:10:21 rhaas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -7049,6 +7049,9 @@ copy_relation_data(SMgrRelation src, SMgrRelation dst,
for (blkno = 0; blkno < nblocks; blkno++)
{
+ /* If we got a cancel signal during the copy of the data, quit */
+ CHECK_FOR_INTERRUPTS();
+
smgrread(src, forkNum, blkno, buf);
/* XLOG stuff */