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 1s1qks-00FOS6-BS for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2024 16:54:58 +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 1s1qkp-007Bgd-3L for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2024 16:54:55 +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 1s1qko-007BgV-Q9 for pgsql-hackers@lists.postgresql.org; Tue, 30 Apr 2024 16:54:55 +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 1s1qkn-000njv-9S for pgsql-hackers@lists.postgresql.org; Tue, 30 Apr 2024 16:54:54 +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 43UGspdR1685378; Tue, 30 Apr 2024 12:54:51 -0400 From: Tom Lane To: Alexander Korotkov cc: "Guo, Adam" , "pgsql-hackers@lists.postgresql.org" Subject: Re: pg_trgm comparison bug on cross-architecture replication due to different char implementation In-reply-to: References: <3335675.1713884256@sss.pgh.pa.us> Comments: In-reply-to Alexander Korotkov message dated "Tue, 30 Apr 2024 19:43:12 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1685376.1714496091.1@sss.pgh.pa.us> Date: Tue, 30 Apr 2024 12:54:51 -0400 Message-ID: <1685377.1714496091@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > Given this, should we try to do better with binary compatibility > checks using ControlFileData? AFAICS they are supposed to check if > the database cluster is binary compatible with the running > architecture. But it obviously allows incompatibilities. Perhaps. pg_control already covers endianness, which I think is the root of the hashing differences I showed. Adding a field for char signedness feels a little weird, since it's not directly a property of the bits-on-disk, but maybe we should. regards, tom lane