mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	postgresql-init-dev-db: Work around PGroonga WAL issue.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							83c0ed2a9d
						
					
				
				
					commit
					480a2e2d64
				
			@@ -108,6 +108,15 @@ EOF
 | 
			
		||||
 | 
			
		||||
"${ROOT_POSTGRES[@]}" -v ON_ERROR_STOP=1 -e "$DBNAME_BASE" <<EOF
 | 
			
		||||
CREATE EXTENSION pgroonga;
 | 
			
		||||
 | 
			
		||||
-- Work around https://github.com/pgroonga/pgroonga/issues/335
 | 
			
		||||
SELECT unnest(
 | 
			
		||||
    CASE WHEN current_setting('server_version_num')::integer >= 150000
 | 
			
		||||
        AND current_setting('pgroonga.enable_wal', TRUE) = 'on' IS NOT TRUE THEN
 | 
			
		||||
        ARRAY['ALTER SYSTEM SET pgroonga.enable_wal = ''on''', 'SELECT pg_reload_conf()']
 | 
			
		||||
    END
 | 
			
		||||
) \gexec
 | 
			
		||||
 | 
			
		||||
GRANT USAGE ON SCHEMA pgroonga TO $USERNAME;
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user