public inbox for [email protected]  
help / color / mirror / Atom feed
From: Igor Korot <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: Fwd: PQexecPrepared() question
Date: Fri, 19 Dec 2025 10:49:26 -0800
Message-ID: <CA+FnnTwqKJQ-AnDHLzmhYra5QaLfTmEJ9=yw+bxADA0=bp1z8g@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTz5tcJEL12ir1nxe9q75rxaAdfBtcFUNiD4R5gW_JR23A@mail.gmail.com>
References: <CA+FnnTygjVvSmzTHnvteuL4KEC=0P_+mF8Kn84JtNGZWUGxpUA@mail.gmail.com>
	<[email protected]>
	<CA+FnnTxO6kam9=mRonvsnUA1OxJxdDdQsj+ubdgFNNb9b3WMPQ@mail.gmail.com>
	<[email protected]>
	<CA+FnnTzE34VJWR7xkymaKEwXiiQ8j3o03m0+qcQsRr2JkRQLwQ@mail.gmail.com>
	<[email protected]>
	<CA+FnnTz5tcJEL12ir1nxe9q75rxaAdfBtcFUNiD4R5gW_JR23A@mail.gmail.com>

---------- Forwarded message ---------
From: Igor Korot <[email protected]>
Date: Fri, Dec 19, 2025 at 9:17 AM
Subject: Re: PQexecPrepared() question
To: Laurenz Albe <[email protected]>


Hi, Lauren’s,

On Thu, Dec 18, 2025 at 11:43 PM Laurenz Albe <[email protected]>
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
>


view thread (19+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Fwd: PQexecPrepared() question
  In-Reply-To: <CA+FnnTwqKJQ-AnDHLzmhYra5QaLfTmEJ9=yw+bxADA0=bp1z8g@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox