mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Teach CLUSTER to skip writing WAL if not needed (ie, not using archiving)
--- Simon. Also, code review and cleanup for the previous COPY-no-WAL patches --- Tom.
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
 | 
			
		||||
 * Portions Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.99 2007/03/19 23:38:32 wieck Exp $
 | 
			
		||||
 * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.100 2007/03/29 00:15:39 tgl Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -138,13 +138,17 @@ typedef struct RelationData
 | 
			
		||||
	char		rd_indexvalid;	/* state of rd_indexlist: 0 = not valid, 1 =
 | 
			
		||||
								 * valid, 2 = temporarily forced */
 | 
			
		||||
	SubTransactionId rd_createSubid;	/* rel was created in current xact */
 | 
			
		||||
	SubTransactionId rd_newRelfilenodeSubid;	/* rel had new relfilenode in current xact */
 | 
			
		||||
	SubTransactionId rd_newRelfilenodeSubid;	/* new relfilenode assigned
 | 
			
		||||
												 * in current xact */
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * rd_createSubid is the ID of the highest subtransaction the rel has
 | 
			
		||||
	 * survived into; or zero if the rel was not created in the current top
 | 
			
		||||
	 * transaction.  This should be relied on only for optimization purposes;
 | 
			
		||||
	 * it is possible for new-ness to be "forgotten" (eg, after CLUSTER).
 | 
			
		||||
	 * Likewise, rd_newRelfilenodeSubid is the ID of the highest subtransaction
 | 
			
		||||
	 * the relfilenode change has survived into, or zero if not changed in
 | 
			
		||||
	 * the current transaction (or we have forgotten changing it).
 | 
			
		||||
	 */
 | 
			
		||||
	Form_pg_class rd_rel;		/* RELATION tuple */
 | 
			
		||||
	TupleDesc	rd_att;			/* tuple descriptor */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user