pg_client_encoding - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject pg_client_encoding
Date
Msg-id 20010910134628W.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: pg_client_encoding
List pgsql-hackers
Hi,

I'm going to add a new function "pg_client_encoding" returning the
current client side encoding name. I know there is a similar
functionality already there in PostgreSQL (show client_encoding) but
it's pain to handle notice message by a program.

Also note that JDBC driver and maybe some other APIs use
getdatabaseencoding, but I think it's not adequate for FE APIs to know
actual encoding passed to FE side, since an encoding conversion might
be made in BE side. For example, if PGCLIENTENCODING is set to SJIS
before starting postmaster, the actual encoding passed to FE would be
SJIS even the database encoding is EUC_JP.

Comments?
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: factorial doc bug?
Next
From: Gavin Sherry
Date:
Subject: Re: factorial doc bug?