diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:11:23 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-01 14:11:23 +0000 |
commit | 245adea136106232d4d673eea694c32a3a80f085 (patch) | |
tree | 4f6aea683df22f242e360c6c7bae753a3ac1a82e /src | |
parent | 578a0d3fcde12c6f16d123bc5abc56dab93390fa (diff) |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 8997fea5d99..01255dc6b1f 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.206.2.8 2009/12/09 21:58:28 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.206.2.9 2010/07/01 14:11:23 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -6121,6 +6121,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 */ |