From 449b4cc177dfb39e7b79dab2d9dfb22b9e0b9f9a Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Tue, 18 Jan 2000 05:11:38 +0000 Subject: [PATCH] Show encoding name rather than encoding id in case of psql -l. --- src/bin/psql/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 1d54483754..1ddc9b2ffc 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -282,7 +282,7 @@ listAllDbs(bool desc) " pg_user.usename as \"Owner\""); #ifdef MULTIBYTE strcat(buf, - ",\n pg_database.encoding as \"Encoding\""); + ",\n pg_encoding_to_char(pg_database.encoding) as \"Encoding\""); #endif if (desc) strcat(buf, ",\n obj_description(pg_database.oid) as \"Description\"\n"); @@ -297,7 +297,7 @@ listAllDbs(bool desc) " NULL as \"Owner\""); #ifdef MULTIBYTE strcat(buf, - ",\n pg_database.encoding as \"Encoding\""); + ",\n pg_encoding_to_char(pg_database.encoding) as \"Encoding\""); #endif if (desc) strcat(buf, ",\n obj_description(pg_database.oid) as \"Description\"\n"); -- 2.11.0