Re: PQexecPrepared() question
Igor Korot <ikorot01@gmail.com>
From: Igor Korot <ikorot01@gmail.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-12-17T17:38:38Z
Lists: pgsql-general
Thank you. On Tue, Dec 16, 2025 at 11:32 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote: > On Tue, 2025-12-16 at 21:53 -0800, Igor Korot wrote: > > Is there some default value for client_encoding? > > The default value for a client connection is whatever the parameter > "client_encoding" was set to in the PostgreSQL server configuration. > > But that value can be overridden in several ways: > > - explicitly by setting "client_encoding" in the connect string > > - with the SQL statement SET by the client > > - if the client has "client_encoding=auto", by the encoding set in > the client's environment > > - by setting the PGCLIENTENCODING environment variable > > Yours, > Laurenz Albe >