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.96) (envelope-from ) id 1vsCZu-00AfYw-3C for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Feb 2026 04:20:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vsCZt-007i4X-1a for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Feb 2026 04:20:49 +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.96) (envelope-from ) id 1vsCZt-007i4I-0n for pgsql-bugs@lists.postgresql.org; Tue, 17 Feb 2026 04:20:49 +0000 Received: from mail-dl1-x1236.google.com ([2607:f8b0:4864:20::1236]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vsCZq-0000000102T-2s9c for pgsql-bugs@lists.postgresql.org; Tue, 17 Feb 2026 04:20:48 +0000 Received: by mail-dl1-x1236.google.com with SMTP id a92af1059eb24-124afd03fd1so5608754c88.0 for ; Mon, 16 Feb 2026 20:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1771302046; x=1771906846; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=08lUzy9bcWLogaw0ytR82hAn5+ePprJ5mJXiZG7laYs=; b=TZ01xTALsObDPDEO6J4dc3qUHY8Z7dGJ02YNA4XNuNX67+fkhpVx8F79unTUDrsPoq TKglz7zvsBChU7QDhNYNy33Y65Tj7oIuEeVZdP/r9G/le6AcLsGUtGP+9GKs99sM3mNG 7PgcDMXQZ4QPSuAexVF9OPqqSyIHFRjrq2cmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771302046; x=1771906846; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=08lUzy9bcWLogaw0ytR82hAn5+ePprJ5mJXiZG7laYs=; b=uWynqu9BJ7MY4oknIS4B6+QkUA57jfX9SfUfPr/69mWA6hjA4mI966LDde73QiDWPu nSpedyedb5oDg8YH2F+sYKUF5lk9TgGXFvq4QiUe+Vsx8V9kNBH4QpdORj6+7UiTKPoE C4YE/a0joMkczs5u7Q23JqOQraKggtvHCA2erJhz3gj32L6M8Os7giM68rIHXYEom1zi FP98GoqUdxtoCcjSUExMZTImt7NElqUaxoVbR1PlkMWiHC8GO9IpUP72QUGHBF3nVkq9 qXsKp66IX1n8dsCBUuzzgex9pshzAk1Duq0RviLHo7v5+bU7s22j6E13IuUydY/AfjVf 0UXw== X-Forwarded-Encrypted: i=1; AJvYcCWLUwNBoLYmsrQSR1P+ibd0T38grvIycUifvTUwxETEhz+7SiZqitANSsUrIqKrRBBC2xutVZyAeKll@lists.postgresql.org X-Gm-Message-State: AOJu0YxLDQ0H+KDRviiREtP2jS42pBRoMtGr1Fm31u90rBFhUR7D/XU+ xlSWdZ3204C8Madj6Y3Z04blBnKLRt/FjsBZzBn9L6aKEF4d40ZWHMBm3NL0uIYomQ== X-Gm-Gg: AZuq6aL4MQmpPI2mJo6aAXgoJEQvxMPq5i99w1+5IZSalP6x7gCbsQSDtrPHn3W9rHf Rl9s86xIVqGR09MikMlJrdnh9DZbCmyrQTszZsnqHmN260Sc2ONWbCkuNTne777Zgn/I5m9jALw ELgqtmU2fugk3/ertAi28TYvazw10Sabu9BRR8tI/8XCrbteyjZ4AqEibDFM1Agzuh54424QcDK g4Fp46m11dZCC0DkjrLHrBMQxGAa/dRdvECqezZ1E5054nX0IRnOJWncRTxiGPpk+/YjT4QYoPG 5HchwyVzLia8tbWmrrIYRzk/YEQKSQvE7fkpVy4GCT+jaKSPMVO9ONJNGZEJOQCj0yZeSjPbN4s ITzjWbEIGlQOyGyekVZP1wK1Lqi9gmlh6urRLGM4AaGTQ7vVzTv0rIUwp+ZIO7kPeY3m8hsONFw IuVCV6FlJyQTOQSWWsHCf8oLTcYGzB0yQHG419GphUMcip8La6wYyGPLw= X-Received: by 2002:a05:7022:b81:b0:119:e56b:91d1 with SMTP id a92af1059eb24-12741b62734mr3773768c88.2.1771302046119; Mon, 16 Feb 2026 20:20:46 -0800 (PST) Received: from microsoft.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12742cc83e6sm13291675c88.15.2026.02.16.20.20.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2026 20:20:45 -0800 (PST) Date: Mon, 16 Feb 2026 20:20:43 -0800 From: Noah Misch To: Tom Lane Cc: Thomas Munro , ranvis@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19406: substring(text) fails on valid UTF-8 toasted value in PostgreSQL 15.16 Message-ID: <20260217042043.99.noahmisch@microsoft.com> References: <20260213224804.2c@rfd.leadboat.com> <20260214002113.1f.noahmisch@microsoft.com> <20260214053821.fa.noahmisch@microsoft.com> <20260214193344.48@rfd.leadboat.com> <20260214224621.26.noahmisch@microsoft.com> <1157953.1771266105@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1157953.1771266105@sss.pgh.pa.us> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Feb 16, 2026 at 01:21:45PM -0500, Tom Lane wrote: > Noah Misch writes: > > Pushed as commit 9f4fd11 > > Various BF animals are complaining > > varlena.c: In function 'text_substring': > varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > int32 E; /* end position, exclusive */ > ^ > > and I've also seen that locally depending on which gcc version and -O > level I'm using. Could we silence that? > > > bollworm | 2026-02-16 09:32:03 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > camel | 2026-02-16 09:32:30 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > chimaera | 2026-02-16 11:40:29 | /home/debian/20-chimaera/buildroot/HEAD/pgsql.build/../pgsql/src/backend/utils/adt/varlena.c:739:5: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > comma | 2026-02-16 14:55:48 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > conchuela | 2026-02-16 15:20:01 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > flea | 2026-02-16 09:31:52 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > krait | 2026-02-16 09:50:17 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > pipit | 2026-02-15 02:36:02 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > urocryon | 2026-02-15 01:45:07 | varlena.c:739:5: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > wireworm | 2026-02-16 15:20:49 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] > ziege | 2026-02-15 01:18:25 | varlena.c:590:9: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] Thanks. I've pushed commit 8cef93d.