mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	reindex-textual-data: Remove PostgreSQL ≥ 11 check.
We removed PostgreSQL 10 support long ago in 6.0-beta1~88. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							0f30c93a2f
						
					
				
				
					commit
					8dd0d7f48d
				
			| @@ -48,12 +48,6 @@ pg_args["connect_timeout"] = "600" | |||||||
| conn = psycopg2.connect(connection_factory=None, **pg_args) | conn = psycopg2.connect(connection_factory=None, **pg_args) | ||||||
| conn.autocommit = True | conn.autocommit = True | ||||||
|  |  | ||||||
| pg_server_version = conn.server_version |  | ||||||
| can_concurrently = pg_server_version >= 110000  # Version 11.0.0 |  | ||||||
|  |  | ||||||
| if options.concurrently and not can_concurrently: |  | ||||||
|     raise RuntimeError("Only PostgreSQL 11 and above can REINDEX CONCURRENTLY.") |  | ||||||
|  |  | ||||||
| cursor = conn.cursor() | cursor = conn.cursor() | ||||||
| cursor.execute( | cursor.execute( | ||||||
|     """ |     """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user