pg_proc.h changed - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject pg_proc.h changed
Date
Msg-id 20000118145114M.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: [HACKERS] pg_proc.h changed
List pgsql-hackers
Hi,

I have added two built-in functions:pg_char_to_encoding()    -- convert encoding string to encoding
idpg_encoding_to_char()   -- convert encoding id to encoding string
 

Main purpose for this is to allow psql -l to print encoding names
rather than encoding ids (sample output from psql shown below) in a
multibyte enabled installation.
       List of databases Database  |  Owner  | Encoding 
------------+---------+----------regression | t-ishii | EUC_JPtemplate1  | t-ishii | EUC_JPtest       | t-ishii |
EUC_JP
(3 rows)

This is much more "user friendly" IMHO.

initdb required.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] How to ignore system indexes
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] docs done Re: [HACKERS] LIBPQ patches ...