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 1uCks2-001m2h-AU for pgsql-hackers@arkaria.postgresql.org; Wed, 07 May 2025 19:55: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 1uCks0-00G57g-Js for pgsql-hackers@arkaria.postgresql.org; Wed, 07 May 2025 19:55:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uCks0-00G57B-7F for pgsql-hackers@lists.postgresql.org; Wed, 07 May 2025 19:55:56 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCkrx-000gdS-1u for pgsql-hackers@lists.postgresql.org; Wed, 07 May 2025 19:55:55 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-3d940c7ea71so979045ab.0 for ; Wed, 07 May 2025 12:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746647752; x=1747252552; 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=oS72joLOAhAYPfEy8kk/+rnkjmYqGeaKFlRzfEajVvs=; b=Z6EZ4q/HoxaqJmjxPstBt4h+/w5wzZa3XbjhTxmuXdsvdo8D8XtV8FZvFihlwuquEB ZwZKoedzW7+2PoPZmlL+Mz5ZNqq+p2ObWI57BzcmZbcURL+rHbqIDah3pmcYF/IiBtBh LNjeoC9kyC6bQSH7qKeOFSp+LBG/yBQ2FiQ4BqwlSfoPjDb2r8pdxzt+woccB+euuZzX uO8xOj60WndNAFsL0QlFqHmys5LTgdrozVwpi81KQQrsvzugLzaQ2iTc13Z7RlSvOlCa cAThHK0Btn6WGro1szwawwj9n/LtgoHBaNDfHMp1X2Hyndthwf7MTmOd0trShQS3l9xt QdfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746647752; x=1747252552; 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=oS72joLOAhAYPfEy8kk/+rnkjmYqGeaKFlRzfEajVvs=; b=DZNLtTb3rszHXIIW7H4JfYxT1LTXPNa+gePBsLTAUgeas8nyQqihw9x47cCbdQ8kbP zCsw1VEL2ClibsKModgbOYmwoSy8MA78IlhfnEbN9OblYYrVlNN4ZHN56ccGh3hZ5AKP RSyGmdDtvUDgEEV6HFVZIM+7sLAtuh1hI+0skttULB8ly5a5nH890i0BJWhM+1WUN0X9 NSGde4EZg/273MckA8GwDfGlMSr20ly3boHqUzARJ999YHL013SiQ73LCAQPtrCEx6oW O7FATkugPpF3V0H7i6aRp1iVhbpQMe/eUt37SSrnyA4v/HN0GJ3GWBkftlMU0FsHY4pw lImQ== X-Forwarded-Encrypted: i=1; AJvYcCWML5EKeuEPA/nNSx6X6et3S+Lh9takIzEr31okPT2yN7aEAcSvl7BOa0EwdtptVR4hvwAS6L2lsQdovTM6@lists.postgresql.org X-Gm-Message-State: AOJu0Yy2v2ZZePEbqqA/r6Qkf7iwqRn9Nwh3TgwT2VOHGfDMTD+Joj8D oENIpUn0TBJ5bkfaUnYMbQ72Xeuq3IEDW7nTMphif8c/CZcpSKsQ X-Gm-Gg: ASbGncv6/Jhy+n5QKJLz2WJOMz15NrlStrQ+eaTlrBYpbMUphoQFjBztmZxvVwUfJh6 eqNzvjvR2hBfGGUSySeVQneQOvXFvYA2cde59GjjHKYN+8L0hvypbOpFmBoZuHXq8vnrf1Y0isM IXkhlC5KM/cYYFJqOgiLdpX5BYS0/UyC3v3Z2gxk81jUzFIznNupcVjwWtmgUIHhrhb+2VlsWHn n38o5ZfJF0OnLCwTN+SOq4XMxV5VjQG2P7uhP1zMWWJMoQOeuHc8lC6n5rOtaTPuny0xZIHLgqQ B/4vJO8PbmwgQBkp+fNMj1/Pufqi2P5oIKU4xvgURXOUC1nsfMIb+t/ewC0owJEz+xdjUkKzxb2 b84KcC0nGIWdT9jQFodIJQHvNe1I98x++rGg4ewTxOw== X-Google-Smtp-Source: AGHT+IFLoyuoCiSKS58e5STCw+EUaq1ZkIlhNDIuu6JEIKYhslLLytXdMYApVIFg8kcxut5BU4eYFg== X-Received: by 2002:a05:6e02:378f:b0:3d9:644c:e3b7 with SMTP id e9e14a558f8ab-3da7392ad54mr52673715ab.15.1746647752481; Wed, 07 May 2025 12:55:52 -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-3da721e7e92sm7206285ab.60.2025.05.07.12.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 12:55:51 -0700 (PDT) Date: Wed, 7 May 2025 14:55:49 -0500 From: Nathan Bossart To: Michael Paquier Cc: Tom Lane , Nisha Moond , Euler Taveira , Amit Kapila , Alexander Lakhin , "Jonathan S. Katz" , PostgreSQL Hackers Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) Message-ID: References: <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: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 07, 2025 at 08:00:39AM +0900, Michael Paquier wrote: > On Tue, May 06, 2025 at 11:41:49AM -0500, Nathan Bossart wrote: >> I brought this up with the RMT, and everyone seemed okay with committing it >> for v18. > > Cool, thanks for the update. > >> I can move it back to replorigin_create(). I don't have a strong opinion >> here. > > I think that I would the check there, as that's safer in the long-run > to enforce the rule to all potential callers of this API. If the > votes balance in favor of keeping it in the SQL function, that's OK by > me as well, so feel free to ignore me if you feel strongly about it > overall. Committed with that change. That takes care of a good chunk of these TOAST snapshot problems. I think there are about 4 others left, unless something has changed since I last checked. I hope to look into those again soon. -- nathan