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.98.2) (envelope-from ) id 1xMs30-00000002FEa-3TX3 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2026 19:13:55 +0000 Received: from localhost ([127.0.0.1]:50792 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xMs30-0000000Bi88-0rvS for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2026 19:13:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:60338) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMs2z-0000000Bi7z-3ndE for pgsql-hackers@lists.postgresql.org; Fri, 30 Oct 2026 19:13:53 +0000 Received: from mail-dy1-x132b.google.com ([2607:f8b0:4864:20::132b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xMs2x-00000001o13-3FJi for pgsql-hackers@postgresql.org; Fri, 30 Oct 2026 19:13:53 +0000 Received: by mail-dy1-x132b.google.com with SMTP id 5a478bee46e88-35829219da8so2557738eec.0 for ; Fri, 30 Oct 2026 12:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20260707.gappssmtp.com; s=20260707; t=1793387629; x=1793992429; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=vc9wdSbH+yJLhw6QeERt7op3n1c9673ODdLMCYaKAog=; b=hSrRsl1ysUhf8R525ESQvYzPL5e478hv6M7uujayDM0k8xO2NZv1w3SghuRGWvs4eU pkvxhQkw3q/wXb44jdp6UQKl0FjY2nUafX5vzkVPnOJ7ggdtmOiGOfsr9qv4Enk4wZN6 pI8tTzo/bEv1sO8pe36Scbu1Uzzv1zl7oC1NgxxjQQUrGLUvAFxwBTCsEo/g6UtkUfzQ e5GV8K6Xew4j1t4LFmJWMlcn//WX+gzkkydhm1VzjJfizc8PxWVCxsV8z+JV+lAMAFdC ScoJPX9RYUzixbibVhYURJvhXTBSaxNwCMdlGlOVcsroO+/gFWh9o6eVFbsRVxPBJgJN 12lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793387629; x=1793992429; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vc9wdSbH+yJLhw6QeERt7op3n1c9673ODdLMCYaKAog=; b=nn2qNRLXBnkSnVmt+6Cj5tFlJNNeeu0k7l40Zfov4kZp/bMBMcDCO4mWja6jnP9vSO ndBHmdMtf9g8XZO95T45Tm7W+yxZ8Zfw3pLFRR8zCgc6mB8qrzLCIXC7RdwWr4jLdBkR KCTLSTipsNcQDFKy8qODpvhJpgs90GUfzTt+Pi8XfZKvjXD9n6cOgqNNMGl8xWBeYkU6 +RSB687D81Pgm1Edc69KWh3qUPFevfAJ3+BQZPiZRClpiWwyc6y2HBcl5QTAZ+ZLOkBx x5bYfSO24PMfjsJnxCpPHNIDpwE17ZM2q5PRVZgvdhjm9ydtuHl5/nKN69kV1u3kCz0B +dSQ== X-Forwarded-Encrypted: i=1; AKwUvBwWKL4V2j1Vi9BxJdwmQOy5PabzTSaH30ULStfrllwRuEFhM5Xgy8WGcZZi2SbSq7t4hYHeF+Na62bvWZz8@postgresql.org X-Gm-Message-State: AFq9FYJvcxxRuppuPLXesB10+usliH01WGDKE6DsBTYbVmOnqSqXkQYf uOLaZ7lD2zRPSJo6Pl1awlEMCpJZstB2tTNBoVNTj0M9aKtEB3FCI1oZ+AfEUjdyWg== X-Gm-Gg: AYBFou0JRdjkLquhMVnQfYbBvpshJus3PsiajwvZEcdGZNckmX1sDAGUIcZcZ3qC6QD AsYGtA21e2Ig+7aj0CJf+oZOEUXX8UhK0AhCuYCSFS6vKHLzaBG7wZbnt01mjHNAzA+fMbEIFDN eBbSB1Mq3nSU6x+ZbqJwvWJ5LOSWpuA/hO8viuK+D2LT2DRH9n4CcL6XnWKmdnwtFqDKB9x75H+ QEoySqEIIVkO4piQYuIqrrY6MAsePDU7aZBSAVLXmlUEFdDqcKndN58/t+4RQt7kjvoirtSN4ye DzrNWQ48R7D45U+oWJDYXg1pO+7HCLfSWB8HvHlPw92lOtppzPXrppHucEXJQxEG4/lejEuWUje CGXyYcp4MUWlyQpgFCMb44lL+BNSxRLPelRJbhL+Oq+B+Dqg51JBQgnxePAE/VLViY25NUz0nNh g9R2mBc5d1+3+MjYmqTLdJpbeE+ysQjDNZXSIovPWsCtNIURi1hotFQ1KEMkbCEGGpHXcAbHUGG kpeT6kSN2pGkPMRyvR0BCiR1wxjcseof4srPaFktVoHBUgS2+b+8THynyfaHgIkNPyb3eq0/tLo icBMd5gWMIAddPB6HTEdJnk7qzGszJ+ybtg8PvL4Pl7xg+SF1Dd8thQRD5lIayvGXfjU X-Received: by 2002:a05:7300:3b05:b0:369:fe82:8d3f with SMTP id 5a478bee46e88-36a3002ef31mr11724588eec.14.1793387628947; Fri, 30 Oct 2026 12:13:48 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-24-4-32-250.hsd1.ca.comcast.net. [24.4.32.250]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-36a429000f8sm8901284eec.13.2026.10.30.12.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2026 12:13:48 -0700 (PDT) Message-ID: <99401f6a9cc4f2545a9afcffce68fdf162bba10a.camel@j-davis.com> Subject: Re: WAL record CRC calculated incorrectly because of underlying buffer modification From: Jeff Davis To: shihao zhong Cc: Andres Freund , Greg Burd , pgsql-hackers@postgresql.org, michael@paquier.xyz, thomas.munro@gmail.com, exclusion@gmail.com, amit.kapila16@gmail.com, hlinnaka@iki.fi Date: Fri, 30 Oct 2026 12:13:47 -0700 In-Reply-To: References: <12CB9268-9A1C-4555-96BB-E3EA01B14C0F@anarazel.de> <2415c781fae2f9139a2397726c23b8cd1d23f8c0.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-9 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2026-10-29 at 22:51 -0400, shihao zhong wrote: > I agree with that, but I think there are still a decent number of > users > who are using hash indexes for different reasons. ... > Looks like this is an interesting problem. I do agree that if there > is > any potential optimization for btree, we should take it all. If > nobody > volunteers, I can create a different thread and create a POC for it > after 19 GAed. Yes, that makes sense to me. If you think there's benefit to be had, please go ahead in a new thread. >=20 > I am not sure. I know some types' =3D has special logic, where it may > not > mean they are the same. >=20 > For example, 'ABC' =3D 'abc' is true > with a case-insensitive collation. But md5() gives different results. Right, there are a few details to work out. But I do think there's room to solve this in the optimizer rather than add more special cases to index DDL and the AMs. We could start by saying it only works if f() is part of a hash opclass, or something. Regards, Jeff Davis