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 1ssigv-00AOT0-DD for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2024 13:01:26 +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 1ssigu-008b72-R7 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2024 13:01:24 +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 1ssife-008VF5-HG for pgsql-hackers@lists.postgresql.org; Mon, 23 Sep 2024 13:00:06 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ssifa-000fX3-JS for pgsql-hackers@lists.postgresql.org; Mon, 23 Sep 2024 13:00:05 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5356ab89665so5050411e87.1 for ; Mon, 23 Sep 2024 06:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727096403; x=1727701203; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Qq4/VyHrYlvUJ/+zH7u+OMhMDaTtjOF8bX+WLcNmENg=; b=AUkBui/ram/x60COMWlU2Od3uNi4SVumcjybEazPi0n5Fr2cUdLClU7wEhAohgZvyq etaUg34fkmOGWK65HJPP4RNcN/awo1Byge7Yg3HsUBI4Bg/NOmnO5Wz1kVIknUPgMsoa WCSGXLRqbNl6rYb78dZFzi5rU2d5PGS+/DS+gHtfMzziI67+sH5G9ONxAtb5Vo84dgrn h2bB+w6spwgdndoMYML7ALNrwnxSv/YvYeIzo5BnxPZF+FN0nHuc4+VA/YHOT+ue54Tr 7P8R4kIbCkdUu70RTVIj5SuaA+aFzc5e7qI5IposGVluJ4+/lQWaQmuPmNoVrJaXQYoq FFcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727096403; x=1727701203; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Qq4/VyHrYlvUJ/+zH7u+OMhMDaTtjOF8bX+WLcNmENg=; b=VUJdr/1TWJa7joUpyvsYVzazxcHZ1YxkO8p2phcAu4KCyzRtQQNgHdYHRoR4H/HhpN kqAkmoahWtmoTR1xMIjS64BJBLq+p7dsWemImpFSri01rnXFk7hdDopGbrphPrAdZUDG w2fvDSOgh08wtOy9GUc1YXW/kwVKqCHig9VwwZ0lHAKwLhMwARm/SaovjI12haGmbfV6 FjmOlv8iwJ6jNQhgkp+AZ0Pxbu1/RDGahUzCF0KRWZ9kPhl4taou7mZq82c+QgYcQbj/ gwdRymYabgnvLlhqSNMKue7Wsla9w6XyDO0HhXDQyez2XoCHh0ecOeFJkYOA23VWfhAg GuKg== X-Forwarded-Encrypted: i=1; AJvYcCXlay/hSUWpWVu9jnLdrJS3oCkr18JyHkdxB3BS/fsxr9SuhmbpzLVfqTQMMz05EhMx3YoGh5hA1PtMmAEz@lists.postgresql.org X-Gm-Message-State: AOJu0YxYDOohd954ehZJPBh3D8pFdY5i1x0yAePuc+D+CqBP9QBxYCuV 2RPenMCNkzTzSg2Rt4WiTYos3bK0QuGb9nN2DwpucLesl1A6vC+z X-Google-Smtp-Source: AGHT+IH8vFZNyxuYlfbFmyhTVF7vfBbNre+LTuXQMbdwxBn/7RCqzOyBQuVKDnc3aNeG+im+mIt5zA== X-Received: by 2002:a05:6512:1108:b0:52e:7542:f469 with SMTP id 2adb3069b0e04-536acb28851mr6096291e87.0.1727096402943; Mon, 23 Sep 2024 06:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.18.41]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-536870b8c26sm3279967e87.267.2024.09.23.06.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Sep 2024 06:00:01 -0700 (PDT) Message-ID: Date: Mon, 23 Sep 2024 16:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) Content-Language: en-US To: Nathan Bossart Cc: Tom Lane , "Jonathan S. Katz" , PostgreSQL Hackers , Michael Paquier References: <1679756.1725476893@sss.pgh.pa.us> <1812111.1726671296@sss.pgh.pa.us> From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Nathan, 20.09.2024 19:51, Nathan Bossart wrote: > Here's a (probably naive) attempt at fixing these, too. I'll give each > path a closer look once it feels like we've identified all the bugs. Thank you for the updated patch! I tested it with two code modifications (1st is to make each created expression index TOASTed (by prepending 1M of spaces to the indexeprs value) and 2nd to make each created index an expression index (by modifying index_elem_options in gram.y) — both modifications are kludgy so I don't dare to publish them) and found no other snapshot-related issues during `make check-world`. Best regards, Alexander