mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-30 00:04:49 -04:00 
			
		
		
		
	Remove CHECKPOINT call from pgbench -- Not needed and affects performance.
This commit is contained in:
		
							parent
							
								
									c448847378
								
							
						
					
					
						commit
						c9361a7a9c
					
				| @ -1,5 +1,5 @@ | ||||
| /*
 | ||||
|  * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.14 2002/01/10 01:11:45 tgl Exp $ | ||||
|  * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.15 2002/02/18 05:46:41 momjian Exp $ | ||||
|  * | ||||
|  * pgbench: a simple TPC-B like benchmark program for PostgreSQL | ||||
|  * written by Tatsuo Ishii | ||||
| @ -548,16 +548,6 @@ init() | ||||
| 				fprintf(stderr, "PQendcopy failed\n"); | ||||
| 				exit(1); | ||||
| 			} | ||||
| 
 | ||||
| 			/*
 | ||||
| 			 * do a checkpoint to purge the old WAL logs | ||||
| 			 */ | ||||
| 			res = PQexec(con, "checkpoint"); | ||||
| 			if (PQresultStatus(res) != PGRES_COMMAND_OK) | ||||
| 			{ | ||||
| 				fprintf(stderr, "%s", PQerrorMessage(con)); | ||||
| 				exit(1); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user