diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:11:03 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:11:03 +0000 |
commit | b525073970c8df06aad71de382d5f6da276ee3a9 (patch) | |
tree | 08382672a06a9ab1ec1a08dd793fd34efc0da6fc | |
parent | 2c0080aaccdf4ca1d1832ef67c2b08447509a994 (diff) | |
download | postgresql-b525073970c8df06aad71de382d5f6da276ee3a9.tar.gz postgresql-b525073970c8df06aad71de382d5f6da276ee3a9.zip |
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced.
Guillaume Lelarge
-rw-r--r-- | src/backend/commands/tablecmds.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e4bcff6c38a..59c99fc3e1b 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.174.2.9 2009/12/09 21:58:42 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.174.2.10 2010/07/01 14:11:03 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -5863,6 +5863,9 @@ copy_relation_data(Relation rel, 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, blkno, buf); /* XLOG stuff */ |