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

From Igor Korot
Subject Fwd: PQexecPrepared() question
Date
Msg-id CA+FnnTwqKJQ-AnDHLzmhYra5QaLfTmEJ9=yw+bxADA0=bp1z8g@mail.gmail.com
Whole thread Raw
In response to PQexecPrepared() question  (Igor Korot <ikorot01@gmail.com>)
Responses Re: Fwd: PQexecPrepared() question
List pgsql-general

---------- Forwarded message ---------
From: Igor Korot <ikorot01@gmail.com>
Date: Fri, Dec 19, 2025 at 9:17 AM
Subject: Re: PQexecPrepared() question
To: Laurenz Albe <laurenz.albe@cybertec.at>


Hi, Lauren’s,

On Thu, Dec 18, 2025 at 11:43 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
On Thu, 2025-12-18 at 07:20 -0800, Igor Korot wrote:
> Imagine following scenario:
>
> I have 2 machines. One is running PG server on *nix. Second is my app on Windows.
>
> An application starts for the first time.
>
> What is “clientencoding in this case?

If I read the code correctly:

- if PGCLIENTENCODING is set in the environment of the client executable, that

No it is not.



- otherwise, if "client_encoding" is set on the server, that

I guess I is.
But what is the purpose of setting client encoding on the server? It is for the client 

Thank you.



- otherwise, SQL_ASCII

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Dealing with SeqScans when Time-based Partitions Cut Over
Next
From: Tom Lane
Date:
Subject: Re: Fwd: PQexecPrepared() question