diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:10:42 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:10:42 +0000 |
commit | 6ec7b0bd1bd58aa0ddc1954ac688b60ac313808d (patch) | |
tree | 7e2180cbb16f8b3d23fdc68d6439b920dbecb40d | |
parent | 8f36605efc5fdf3cfcfe69f33b6fce524fd84a53 (diff) | |
download | postgresql-6ec7b0bd1bd58aa0ddc1954ac688b60ac313808d.tar.gz |
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 3c1cbae695..b6d9d94e0d 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.142.4.11 2009/12/09 21:58:54 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.142.4.12 2010/07/01 14:10:42 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -5756,6 +5756,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 */ |