Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so64x-008GrM-Nr for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Sep 2024 18:59:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1so63y-000XIs-D7 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Sep 2024 18:58:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so63y-000XIP-19 for pgsql-hackers@lists.postgresql.org; Tue, 10 Sep 2024 18:58:06 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so63v-000Vbo-0L for pgsql-hackers@lists.postgresql.org; Tue, 10 Sep 2024 18:58:04 +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 48AIvt4R3542371; Tue, 10 Sep 2024 14:57:55 -0400 From: Tom Lane To: Masahiko Sawada cc: Noah Misch , Joe Conway , Peter Eisentraut , Alexander Korotkov , "Guo, Adam" , "pgsql-hackers@lists.postgresql.org" , Nathan Bossart , Jim Mlodgenski Subject: Re: pg_trgm comparison bug on cross-architecture replication due to different char implementation In-reply-to: References: <1696557.1714498172@sss.pgh.pa.us> <2652929.1714745623@sss.pgh.pa.us> <3846ef0f-5273-41aa-a77e-f92841e0515f@eisentraut.org> <362570f3-1031-4f8e-a077-81c103200b64@joeconway.com> <20240518214546.e8@rfd.leadboat.com> <20240831031038.31.nmisch@google.com> <20240906215937.f7.nmisch@google.com> <2385726.1725662213@sss.pgh.pa.us> <3317883.1725925337@sss.pgh.pa.us> <3364732.1725949535@sss.pgh.pa.us> Comments: In-reply-to Masahiko Sawada message dated "Tue, 10 Sep 2024 11:31:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3542369.1725994675.1@sss.pgh.pa.us> Date: Tue, 10 Sep 2024 14:57:55 -0400 Message-ID: <3542370.1725994675@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Masahiko Sawada writes: > An alternative way would be that we store the char signedness in the > control file, and gin_trgm_ops opclass reads it if the bytes in the > meta page shows 'unset'. The char signedness in the control file > doesn't mean to be used for the compatibility check for physical > replication but used as a hint. But it also could be a bit messy, > though. Yeah, that seems like it could work. But are we sure that replicas get a copy of the primary's control file rather than creating their own? regards, tom lane