mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Show encoding name rather than encoding id in case of psql -l.
This commit is contained in:
		@@ -282,7 +282,7 @@ listAllDbs(bool desc)
 | 
				
			|||||||
		   "       pg_user.usename as \"Owner\"");
 | 
							   "       pg_user.usename as \"Owner\"");
 | 
				
			||||||
#ifdef MULTIBYTE
 | 
					#ifdef MULTIBYTE
 | 
				
			||||||
	strcat(buf,
 | 
						strcat(buf,
 | 
				
			||||||
		   ",\n       pg_database.encoding as \"Encoding\"");
 | 
							   ",\n       pg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	if (desc)
 | 
						if (desc)
 | 
				
			||||||
		strcat(buf, ",\n       obj_description(pg_database.oid) as \"Description\"\n");
 | 
							strcat(buf, ",\n       obj_description(pg_database.oid) as \"Description\"\n");
 | 
				
			||||||
@@ -297,7 +297,7 @@ listAllDbs(bool desc)
 | 
				
			|||||||
		   "       NULL as \"Owner\"");
 | 
							   "       NULL as \"Owner\"");
 | 
				
			||||||
#ifdef MULTIBYTE
 | 
					#ifdef MULTIBYTE
 | 
				
			||||||
	strcat(buf,
 | 
						strcat(buf,
 | 
				
			||||||
		   ",\n       pg_database.encoding as \"Encoding\"");
 | 
							   ",\n       pg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	if (desc)
 | 
						if (desc)
 | 
				
			||||||
		strcat(buf, ",\n       obj_description(pg_database.oid) as \"Description\"\n");
 | 
							strcat(buf, ",\n       obj_description(pg_database.oid) as \"Description\"\n");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user