From: Tatsuo Ishii Date: Tue, 18 Jan 2000 05:11:38 +0000 (+0000) Subject: Show encoding name rather than encoding id in case of psql -l. X-Git-Tag: REL9_0_0~24129 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=449b4cc177dfb39e7b79dab2d9dfb22b9e0b9f9a;p=pg-rex%2Fsyncrep.git Show encoding name rather than encoding id in case of psql -l. --- 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");