pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kluzak, Matthew C. <mckluzak@nd.gov>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Bind Parameter is Too Big
Date: Thu, 01 Sep 2022 17:03:15 -0400
Message-ID: <671706.1662066195@sss.pgh.pa.us> (raw)
In-Reply-To: <DM8PR09MB6661528B3674DF820211CAF7AC7B9@DM8PR09MB6661.namprd09.prod.outlook.com>
References: <DM8PR09MB666196A6BF5FE3D2612818FAAC7B9@DM8PR09MB6661.namprd09.prod.outlook.com>
	<32c5f273-65a1-09aa-b553-df5b86efda5c@aklaver.com>
	<DM8PR09MB6661528B3674DF820211CAF7AC7B9@DM8PR09MB6661.namprd09.prod.outlook.com>

"Kluzak, Matthew C." <mckluzak@nd.gov> writes:
> The Sybase databases use 

> Character Set = 1, iso_1
>     ISO 8859-1 (Latin-1) - Western European 8-bit character set.
> Sort Order = 50, bin_iso_1
>     Binary ordering, for the ISO 8859/1 or Latin-1 character set (
>     iso_1).

> The Postgres database uses UTF8

Hmmm ... it's plausible that something somewhere is figuring that
ISO-8859-1 conversion to UTF8 could expand the data at most 2X,
and that's where the 1000-to-2000 multiplier is coming from.

I wonder if it would help to set things up so that the client
side is sending ISO-8859-1 to Postgres (ie, client_encoding = latin1)
and the encoding conversion happens on the server side.
In principle it shouldn't matter where the conversion happens,
but you might be dealing with some bug or underdocumented limitation
in whatever is doing that conversion on the client side.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <671706.1662066195@sss.pgh.pa.us>
Permalink:  ../671706.1662066195@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/671706.1662066195@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mckluzak@nd.gov, adrian.klaver@aklaver.com
  Subject: Re: Bind Parameter is Too Big
  In-Reply-To: <671706.1662066195@sss.pgh.pa.us>
  References: <DM8PR09MB666196A6BF5FE3D2612818FAAC7B9@DM8PR09MB6661.namprd09.prod.outlook.com> <32c5f273-65a1-09aa-b553-df5b86efda5c@aklaver.com> <DM8PR09MB6661528B3674DF820211CAF7AC7B9@DM8PR09MB6661.namprd09.prod.outlook.com> <671706.1662066195@sss.pgh.pa.us>

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

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