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 1wZSo8-0013mp-08 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jun 2026 12:22:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wZSo6-00HMbQ-2t for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jun 2026 12:22:18 +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.96) (envelope-from ) id 1wZSo6-00HMbH-1v for pgsql-hackers@lists.postgresql.org; Tue, 16 Jun 2026 12:22:18 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wZSo4-00000000jSJ-2D1O for pgsql-hackers@lists.postgresql.org; Tue, 16 Jun 2026 12:22:18 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-9157f7c1c0eso473686685a.1 for ; Tue, 16 Jun 2026 05:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781612534; cv=none; d=google.com; s=arc-20240605; b=fNeJMsQvOmatjneLLKEOj+r2Rk9nyPabHh32IIxlmTbuty/5cighXXYDCtsIFLa0Hg PRzefQvtYZAlcEtJGkGd4Wgs/slXVHncrrdboSc/XFYAPM6QhUu9/OI6MMS2StLLHIuq R+yL+FSGdXB0kJUh8GiIrokNMurRlD9YFO7ZjVKTjNZDIshfLzhjc/aiBcAx+NFD5Lm+ WNXldpDtjjFbUhKOAW5A2/pkWw83opfU0m8Waa4jZ3l61BTVo8p6J/vWcfcOjbrFk4jZ 7HfyXzwlR2e0mC2JKJuy/H73y7MJIr5qZULMuf5SOXfi0ZNOWD0HTeXzdeF7hHxOuysi A1Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dE79eyEUxgZOiVq2U/ou00i/LbL4djsvcQ59G8UjNYY=; fh=sUaPeBORewxj6kGiYlFd/eN2OnvHFDHbPHdKG3ff+og=; b=TXCOeMM8gD3oiT84+eKD02S42cPNkcVJgpIQtyEcZ8e2Bq0lqsASyb9eQTX+9oZOsa rjLvlGWA5NHYc3Y90gxRbPhIhBP/h3EIxi4TKV3OzH333FGpauoKEYvfcQCSbXXTyj7j vKmMuSPhYlzXs0m43BoS1ikT5fPilrBVApE472iql83TJkiJRMVnSZjsepSvwzhZdjMD qJdKg1v6iKlKnCgMv2vRQEQKX3Wo7CnnSMhhHUXW8mjjvIRQK2kSsWJmaVo9Bndvt+qo eRm4sc4ioJKXFCafcwEGjR1Su6yYyzkzXM+RZToxUJGtX8yGgwsfjBwtrEjgQ0Wnn0e8 Jsqg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781612534; x=1782217334; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dE79eyEUxgZOiVq2U/ou00i/LbL4djsvcQ59G8UjNYY=; b=d3aT0yF3+O6FD3st73VBcCkGpwFo/DztwJOqlsaWjr5/xqQHGaTvFZa0QmIKuJqRJt oxh6mfhD/M6hq81sbAMZcpCnwvSNfW+gRZ4mOIHqZpjUf7lel9TasXX/I6eN0vQuFDDZ K1vyV1JEk8avWC/ck360CwuV/ydZlJ819I3MUG9Fr+RaYRAoRr+AGR212Y+5OdMN95CG xKnCqttInSdAheIqUTgVf30xcYR6U49ucKd1CLXaz0+tjYatuDKgJFSLxMLVnEeX/WXy pdS7dddfw5wSvj4MOcoDZF1neCbqmbptMiN6Rq1n4ZXBq2O2R/OYOcRxFLgelg6kAp1B Ulbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781612534; x=1782217334; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dE79eyEUxgZOiVq2U/ou00i/LbL4djsvcQ59G8UjNYY=; b=B9sXUTAD3TUXELyqXh5oklVeNhrrqCcDWxj4qb7bfUNK5LxVYBXxHV3ymDaM47/Xkw BfvsSGA/DU87dxtYwouEUd/DLBfE5FTakgo2cGBpDxuWlDzn3L8Qr5azAhD0ryfQT1RI BwjQHEv1seBPd8oxhPv9HD4QTJ4KiPyLa9kfMgh+R7/XLydXXJmSGRFQy7rqlUa5rjBr dfowZM2eQ/QjQLyxiUpJ8EJSFp/xIsB0oiPHqMLMOr0orqAUMvuH2Pq6IWlYKwbp+bft ImLnJwc2WrQmn1cX12ZbJEDPF3wfW4Yz/KgOwz1pzf45LhaAgUntkArOifZarGQore+X N3IQ== X-Forwarded-Encrypted: i=1; AFNElJ+VqKvNrOg/eBh7cD2I6i9JBWCgJJhE6jsS9ybuahzV2CZpFdQlz3t+5PLRWx/qXrujA5XmWLbwM4dSFcc7@lists.postgresql.org X-Gm-Message-State: AOJu0Yw4RvVC1cbkHc+MzkLDXyzptrckZmemEwKB9QyByIWtEhyErprC 1scoZon6+QrmilU3ptUWkjimzSbu3ecoAt6BD67/v2bSpK93YnTQSrEimT5keH2EJDUNm5oVh74 bupZEJsCWpXqSVTEvAxlf2Bc0hk3LMUA= X-Gm-Gg: Acq92OF8x2sr64knoMtDm8WujlF33qARvNzTmJxhIp4nllEZvSZckpcAeTbwNh1iG9C P6H06a8gFv+tNsZlj/bSPg3y4PfUIiYbfUxAxQYL8gbxkxMAwWepZJ6nZrkpKVlfumfllBHU07E zfPjwl1vZm1f+0nPNPVIINvfeVycm2elschsxaKy+Ehra5AFvGCQG4QQkmSKN40onp3NJlXBFrN m5yuyzQoIAIGpsnHU93VZ/o7iTZxULM5zbyvzj6nJX8OTockeJD/lQOeTc8Y2Ou1Izel5LoxxDG E5dJmmBW1AyHVjd9jAGIzzOqr/FmJ9E7589b8c30W+za5aazO+95kwETJT2U4M2XBxXemJC56x0 kZzEK X-Received: by 2002:a05:620a:710d:b0:915:5930:94f1 with SMTP id af79cd13be357-91c48b327b2mr526248685a.47.1781612534487; Tue, 16 Jun 2026 05:22:14 -0700 (PDT) MIME-Version: 1.0 References: <0f655bcd-6487-4179-f9cf-c248efbad510@gmail.com> <41117807-3bea-45bc-a9c0-743c29abff2d@postgrespro.ru> In-Reply-To: From: Alexander Korotkov Date: Tue, 16 Jun 2026 15:22:02 +0300 X-Gm-Features: AVVi8CerncV2EMK2IPsUL91HrOMsjaVJt4NFkYhFLELOWP1f1-U6JPtjaUhkaLQ Message-ID: Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands To: Pavel Borisov Cc: Justin Pryzby , Dmitry Koval , Alexander Lakhin , pgsql-hackers@lists.postgresql.org, Tomas Vondra , Alvaro Herrera Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Pavel! On Tue, Jun 16, 2026 at 12:57=E2=80=AFAM Pavel Borisov wrote: > I looked into the patch. It's simple enough and looks good to me. > I have one question: is it correct to pass 0 reloptions to > NewRelationCreateToastTable or we need to use transformRelOptions + > heap_reloptions pair to derive toast_reloptions as it is done in > ProcessUtilitySlow() and create_ctas_internal()? Yes, (Datum) 0 is correct here. MERGE/SPLIT PARTITION grammar provides no syntactic way for the user to specify reloptions for the new partitions, so there is nothing to extract via transformRelOptions. This matches createPartitionTable() itself, which already calls heap_create_with_catalog(... reloptions=3D(Datum) 0 ...) for the main relation a few lines above; the TOAST table just inherits that choice. Extending the syntax to accept WITH (...) on new partitions would be a separate, larger feature. Out of scope for this bug fix. ------ Regards, Alexander Korotkov Supabase