Re: PQexecPrepared() question - Mailing list pgsql-general

From Laurenz Albe
Subject Re: PQexecPrepared() question
Date
Msg-id 9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at
Whole thread Raw
In response to Re: PQexecPrepared() question  (Igor Korot <ikorot01@gmail.com>)
Responses Re: PQexecPrepared() question
Re: PQexecPrepared() question
List pgsql-general
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



pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: PQexecPrepared() question
Next
From: Laurenz Albe
Date:
Subject: Re: libpq simple SELECT