git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c37e009)
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Thu, 1 Jul 2010 14:10:21 +0000 (14:10 +0000)
Thu, 1 Jul 2010 14:10:21 +0000 (14:10 +0000)
Backpatch to 8.0, where tablespaces were introduced.

Guillaume Lelarge


diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 18e2f571283efb660cc2819689f08fac6dcc6cdc..2ed8125fd6b168ca1a5201b67e41ea67dd0a6679 100644 (file)
--- 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 */
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /