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

From Ron Johnson
Subject Re: Fwd: PQexecPrepared() question
Date
Msg-id CANzqJaCxGFizjSbSGY=0MEK4WR6aqc62YR5mWT3rBzktG9FRXg@mail.gmail.com
Whole thread Raw
In response to Re: Fwd: PQexecPrepared() question  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fwd: PQexecPrepared() question
Re: Fwd: PQexecPrepared() question
List pgsql-general
On Fri, Dec 19, 2025 at 1:52 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Igor Korot <ikorot01@gmail.com> writes:
> But what is the purpose of setting client encoding on the server? It is for
> the client

No, it's to tell the server what encoding to transmit to the client
(as well as what encoding strings coming from the client are in).

If there's an encoding mismatch between the server and client, does "something" (like a PQ driver) convert text in the data stream from the source encoding to the target encoding?

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fwd: PQexecPrepared() question
Next
From: Tom Lane
Date:
Subject: Re: Fwd: PQexecPrepared() question