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 1u9pOk-006mMP-Mn for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Apr 2025 18:09:39 +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 1u9pOi-009FW1-Lx for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Apr 2025 18:09:37 +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 1u9pOi-009FVs-74 for pgsql-hackers@lists.postgresql.org; Tue, 29 Apr 2025 18:09:37 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u9pOh-000DUy-1A for pgsql-hackers@lists.postgresql.org; Tue, 29 Apr 2025 18:09:36 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3d938fcb70cso15812135ab.0 for ; Tue, 29 Apr 2025 11:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745950175; x=1746554975; darn=lists.postgresql.org; h=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=H9csOXG3BFy4xxi+lP77mlFINe3uIsWWDu5tBqSeKnw=; b=a+5UX+EC++YaJ2oFRBI54E69FOzOQyxhmHgLDivStwx32/qpm+0Ju9UZz3OTnOdX+h p8FbqY02VKa05CgvD+yPNfzT6wLmDBxhk1kNNdoyGeGVOwsWYLrbNuI5Wkn4zEyjCJOn wR8DixqSOsr3QNgT1T/iVkxmjImcMZAe+jzYcNpvl62naPLc1DeKZztpEtkQLkTCgJgy beHpJH/9Hrh8w5g37KVz69NeG7XYHOn/Om3f4jdGJXRHug84fqsw+B2jRaKEf3P0kz1h VNIk4W5Q1C4aK9djD90ogOcRBp7bMa9qdb+ZYazBwCMwp+VNFy5IuZOpVxvZEn/JqseT 2Lcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745950175; x=1746554975; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H9csOXG3BFy4xxi+lP77mlFINe3uIsWWDu5tBqSeKnw=; b=d/8+AQUIWcD4LPK51z//LPO4n8VXcfiATToQkZv3c0R3cp5KxpvYZibfthSiU7IFJQ Y88Uh9dtijrNeyeFzipOa98DRhYAnSLyAWJcbo9XyipOtX3C6IO9o/yYPi7F5m25Fyz+ 7l8WgAt7kTL3PihgRQAgEryiOnZc5Zlm3/o7/s4ziEIBThHq0fzBMndFXDhMB8iJPNZB v55aecn+mpsgXP8mK5wrR5Ke/S+nglsEgf+mVNZ+bft02q7vtBdmN4z2TB/a2LtP9Sr3 /L6uAoi2DfRXO6Zhcfs0f4GnYNOONIQmDBkbrYea5X267BwbCbjSQ0QkdCS12gsLHM9h sUCg== X-Forwarded-Encrypted: i=1; AJvYcCXbaSX6eYJ66jjPGbW7vSkfIgPwI7KnMKMw1Vro9vLKtVJXrYApSfC+vTFVtFKfcth0xjukHoZBN7R47TmP@lists.postgresql.org X-Gm-Message-State: AOJu0Yyb48gBpKZB0+Wp84O1jCz/PjOd1IAAWlWhYMcXAFL9bx67BHqN tFy3I/7IL8HtZ9JZkR9hQ6ryfcBh8zyu8njYHxzs5tHftnW/YKse X-Gm-Gg: ASbGncs9/hokp4P3VLQNG3qogunkp+a9oby0H70sno9QPiUHIEzkTkzYXl9fDsV8q8X /0kSQzFneTojKAVJ3NsDAmzN5p18GeGNMXQXVb9kOAWposmclVEsHR5hQx6Z6rOEiGPEDvD4MSf w78nfbhfZKpaT+Ptal5LpE7sHTOsxdQDIkqFuiDia682jsNRiWjxKSzGP6Hl7fL+mCY2jZrwrvH fexyltdz1VDwZC7zMJ/MNwO2GT3R9MzyUxVsX+ql9IdtXDk7p8UVQj8r2Hg6JP/bfbRk24czO/O NPNE4qYrnhqB/rZjz91Uy9VJQVSIQpwXuqISS744a4jZgwfKq+20a7p4HVsldmM/envFSNI70Og LoxvcBV+4RoJMllDM5gOE+X9X9HlD49M= X-Google-Smtp-Source: AGHT+IEbLUQyEryBjNFzr0kPhmGkJPQbGH6Otv6YbWy1yv/5LoG5EnTO8vcDcOkL3fD6X48nx6c01w== X-Received: by 2002:a05:6e02:3e8f:b0:3d5:8908:c388 with SMTP id e9e14a558f8ab-3d9675d2d11mr1684765ab.0.1745950174876; Tue, 29 Apr 2025 11:09:34 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3d95f2b571fsm4356005ab.25.2025.04.29.11.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Apr 2025 11:09:34 -0700 (PDT) Date: Tue, 29 Apr 2025 13:09:32 -0500 From: Nathan Bossart To: Tom Lane Cc: Nisha Moond , Euler Taveira , Michael Paquier , Amit Kapila , Alexander Lakhin , "Jonathan S. Katz" , tomas@vondra.me, "hlinnaka@iki.fi PostgreSQL Hackers" Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) Message-ID: References: <1503201.1745444021@sss.pgh.pa.us> <905635.1745876108@sss.pgh.pa.us> <910625.1745878759@sss.pgh.pa.us> <1055453.1745949714@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1055453.1745949714@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 29, 2025 at 02:01:54PM -0400, Tom Lane wrote: > Nathan Bossart writes: >> Thanks. I'll stash this away for July unless someone wants to argue that >> it's fair game for v18. IMHO this isn't nearly urgent enough for that, and >> the bugs will continue to exist on older major versions regardless. > > I'm inclined to argue that it's a bug fix and therefore still in-scope > for v18. The fact that we can't back-patch such a change is all the > more reason to not let it slide another year. But probably the RMT > should make the call. Tomas, Heikki: Thoughts on removing pg_replication_origin's TOAST table post-feature-freeze? The proposed commit message explains what's going on: A few places that access this catalog do not set up an active snapshot before potentially accessing its TOAST table, which is unsafe. However, roname (the replication origin name) is the only varlena column, so this is only ever a problem if the name requires out-of-line storage, which seems unlikely. This commit removes its TOAST table to avoid needing to set up a snapshot, and it establishes a length restriction of 512 bytes for replication origin names. Even without this restriction, names that would require out-of-line storage would fail with a "row is too big" error; the additional length restriction just provides a more specific error message. -- nathan