mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 00:08:23 -05:00 
			
		
		
		
	Fix buildfarm failures in pg_walinspect tests.
This commit is contained in:
		
							parent
							
								
									12aaae5131
								
							
						
					
					
						commit
						dad9ba1c82
					
				@ -11,6 +11,12 @@ DATA = pg_walinspect--1.0.sql
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
REGRESS = pg_walinspect
 | 
					REGRESS = pg_walinspect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/pg_walinspect/walinspect.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Disabled because these tests require "wal_level=replica", which
 | 
				
			||||||
 | 
					# some installcheck users do not have (e.g. buildfarm clients).
 | 
				
			||||||
 | 
					NO_INSTALLCHECK = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifdef USE_PGXS
 | 
					ifdef USE_PGXS
 | 
				
			||||||
PG_CONFIG = pg_config
 | 
					PG_CONFIG = pg_config
 | 
				
			||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
 | 
					PGXS := $(shell $(PG_CONFIG) --pgxs)
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,13 @@
 | 
				
			|||||||
CREATE EXTENSION pg_walinspect;
 | 
					CREATE EXTENSION pg_walinspect;
 | 
				
			||||||
CREATE TABLE sample_tbl(col1 int, col2 int);
 | 
					 | 
				
			||||||
-- Make sure checkpoints don't interfere with the test.
 | 
					-- Make sure checkpoints don't interfere with the test.
 | 
				
			||||||
SELECT lsn as wal_lsn1 FROM
 | 
					SELECT 'init' FROM pg_create_physical_replication_slot('regress_pg_walinspect_slot', true, false);
 | 
				
			||||||
  pg_create_physical_replication_slot('regress_pg_walinspect_slot', true, false)
 | 
					 ?column? 
 | 
				
			||||||
  \gset
 | 
					----------
 | 
				
			||||||
 | 
					 init
 | 
				
			||||||
 | 
					(1 row)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CREATE TABLE sample_tbl(col1 int, col2 int);
 | 
				
			||||||
 | 
					SELECT pg_current_wal_lsn() AS wal_lsn1 \gset
 | 
				
			||||||
INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
					INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
				
			||||||
SELECT pg_current_wal_lsn() AS wal_lsn2 \gset
 | 
					SELECT pg_current_wal_lsn() AS wal_lsn2 \gset
 | 
				
			||||||
INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
					INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
				
			||||||
 | 
				
			|||||||
@ -1,11 +1,11 @@
 | 
				
			|||||||
CREATE EXTENSION pg_walinspect;
 | 
					CREATE EXTENSION pg_walinspect;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- Make sure checkpoints don't interfere with the test.
 | 
				
			||||||
 | 
					SELECT 'init' FROM pg_create_physical_replication_slot('regress_pg_walinspect_slot', true, false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CREATE TABLE sample_tbl(col1 int, col2 int);
 | 
					CREATE TABLE sample_tbl(col1 int, col2 int);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Make sure checkpoints don't interfere with the test.
 | 
					SELECT pg_current_wal_lsn() AS wal_lsn1 \gset
 | 
				
			||||||
SELECT lsn as wal_lsn1 FROM
 | 
					 | 
				
			||||||
  pg_create_physical_replication_slot('regress_pg_walinspect_slot', true, false)
 | 
					 | 
				
			||||||
  \gset
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
					INSERT INTO sample_tbl SELECT * FROM generate_series(1, 2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								contrib/pg_walinspect/walinspect.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								contrib/pg_walinspect/walinspect.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					wal_level = replica
 | 
				
			||||||
 | 
					max_replication_slots = 4
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user