Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTrLR-0003MB-WD for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 21:03:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTrLQ-0004oQ-RZ for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 21:03:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTrLQ-0004oH-Gn for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 21:03:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTrLK-0003fP-3n for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 21:03:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 281L3FS7671707; Thu, 1 Sep 2022 17:03:15 -0400 From: Tom Lane To: "Kluzak, Matthew C." cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: Bind Parameter is Too Big In-reply-to: References: <32c5f273-65a1-09aa-b553-df5b86efda5c@aklaver.com> Comments: In-reply-to "Kluzak, Matthew C." message dated "Thu, 01 Sep 2022 20:51:44 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <671705.1662066195.1@sss.pgh.pa.us> Date: Thu, 01 Sep 2022 17:03:15 -0400 Message-ID: <671706.1662066195@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Kluzak, Matthew C." 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