mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix pg_dumpall on pre-8.1 servers
rolname did not exist in pg_shadow. Backpatch to 9.3 Report by Andrew Gierth via IRC
This commit is contained in:
		@@ -699,7 +699,7 @@ dumpRoles(PGconn *conn)
 | 
				
			|||||||
						  "valuntil as rolvaliduntil, "
 | 
											  "valuntil as rolvaliduntil, "
 | 
				
			||||||
						  "false as rolreplication, "
 | 
											  "false as rolreplication, "
 | 
				
			||||||
						  "null as rolcomment, "
 | 
											  "null as rolcomment, "
 | 
				
			||||||
						  "rolname = current_user AS is_current_user "
 | 
											  "usename = current_user AS is_current_user "
 | 
				
			||||||
						  "FROM pg_shadow "
 | 
											  "FROM pg_shadow "
 | 
				
			||||||
						  "UNION ALL "
 | 
											  "UNION ALL "
 | 
				
			||||||
						  "SELECT 0, groname as rolname, "
 | 
											  "SELECT 0, groname as rolname, "
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user