mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 00:08:23 -05:00 
			
		
		
		
	Teach pg_controldata and pg_resetxlog about the new backupEndRequired field
in control file.
This commit is contained in:
		
							parent
							
								
									1d0392b245
								
							
						
					
					
						commit
						a1a847d31f
					
				@ -232,6 +232,8 @@ main(int argc, char *argv[])
 | 
			
		||||
	printf(_("Backup start location:                %X/%X\n"),
 | 
			
		||||
		   ControlFile.backupStartPoint.xlogid,
 | 
			
		||||
		   ControlFile.backupStartPoint.xrecoff);
 | 
			
		||||
	printf(_("End-of-backup record required:        %s\n"),
 | 
			
		||||
		   ControlFile.backupEndRequired ? _("yes") : _("no"));
 | 
			
		||||
	printf(_("Current wal_level setting:            %s\n"),
 | 
			
		||||
		   wal_level_str(ControlFile.wal_level));
 | 
			
		||||
	printf(_("Current max_connections setting:      %d\n"),
 | 
			
		||||
 | 
			
		||||
@ -637,6 +637,7 @@ RewriteControlFile(void)
 | 
			
		||||
	ControlFile.minRecoveryPoint.xrecoff = 0;
 | 
			
		||||
	ControlFile.backupStartPoint.xlogid = 0;
 | 
			
		||||
	ControlFile.backupStartPoint.xrecoff = 0;
 | 
			
		||||
	ControlFile.backupEndRequired = false;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Force the defaults for max_* settings. The values don't really matter
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user