diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2000-01-18 05:11:38 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2000-01-18 05:11:38 +0000 |
commit | 449b4cc177dfb39e7b79dab2d9dfb22b9e0b9f9a (patch) | |
tree | f2fa3ad6b8d5a3a6336b4ed6c99c758923e9cc20 | |
parent | 5eb1d0deb15f2b7cd0051bef12f3e091516c723b (diff) | |
download | postgresql-449b4cc177dfb39e7b79dab2d9dfb22b9e0b9f9a.tar.gz postgresql-449b4cc177dfb39e7b79dab2d9dfb22b9e0b9f9a.zip |
Show encoding name rather than encoding id in case of psql -l.
-rw-r--r-- | src/bin/psql/describe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 1d544837546..1ddc9b2ffc5 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"); |