mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Allow ALTER TABLE .. SET TABLESPACE to be interrupted.
Backpatch to 8.0, where tablespaces were introduced. Guillaume Lelarge
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
				
			|||||||
 *
 | 
					 *
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * IDENTIFICATION
 | 
					 * 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++)
 | 
						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);
 | 
							smgrread(src, blkno, buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* XLOG stuff */
 | 
							/* XLOG stuff */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user