Content-Length: 275541 | pFad | http://github.com/postgrespro/postgres_cluster/commit/c6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f

99 Allow ALTER TABLE .. SET TABLESPACE to be interrupted. · postgrespro/postgres_cluster@c6cf306 · GitHub
Skip to content

Commit c6cf306

Browse files
committed
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced. Guillaume Lelarge
1 parent c37e009 commit c6cf306

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.330 2010/04/28 16:10:41 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.331 2010/07/01 14:10:21 rhaas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -7049,6 +7049,9 @@ copy_relation_data(SMgrRelation src, SMgrRelation dst,
70497049

70507050
for (blkno = 0; blkno < nblocks; blkno++)
70517051
{
7052+
/* If we got a cancel signal during the copy of the data, quit */
7053+
CHECK_FOR_INTERRUPTS();
7054+
70527055
smgrread(src, forkNum, blkno, buf);
70537056

70547057
/* XLOG stuff */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/c6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy