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 1wOwbM-000IkY-0A for pgsql-hackers@arkaria.postgresql.org; Mon, 18 May 2026 11:57:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wOwbK-0026mM-0I for pgsql-hackers@arkaria.postgresql.org; Mon, 18 May 2026 11:57:39 +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 1wOwbJ-0026mD-2e for pgsql-hackers@lists.postgresql.org; Mon, 18 May 2026 11:57:38 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wOwbH-00000000APP-3HOB for pgsql-hackers@postgresql.org; Mon, 18 May 2026 11:57:37 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-366139223e4so1015709a91.0 for ; Mon, 18 May 2026 04:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779105455; x=1779710255; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QotlTw155d5inilJMTG4X9O58qsXLATGe5wef8YIDZk=; b=PJqHbRNoqcxakIL1wP9lQ3b2Y62Em6vdyZ88q/isibu2q8p3sWTSNo4Nx/bJ1CIUJV KD5Gtn/VhqPFhmjJqHqAqkhciFaFkyF6P/WvrHd57C1/sDNiw8HOI2W4nSTdsm+B6XmL yTAayOwewaCSBkZ9xr/PNH/EcAp65fLp/79vVKtDIrvR0B4M0qHArqXWkohL/qLREk4W UzT0nVKyyz8YhaztWVJsJMOknQ5EcVEpeCeXxB9Xe8KxzSGljk4hQ/5hlbFwa1T/Es5t 8XTkWVOJR6/7qZKuLln2qGcy5KGqn7VsWQthr4RLNsqTiTJ7PIAWyFXovVdnq2LvrJBC U+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779105455; x=1779710255; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QotlTw155d5inilJMTG4X9O58qsXLATGe5wef8YIDZk=; b=SDrMvL3JfrIcp6S8xOHEzikpRoIlWW+cH3W+my8j5qp6fNoBbzKY/3XfOGATcTopYl XnIrJp4B0jtcnfx/uAibWpuDIwRsdoct7AJYeyEZOxmK7cAuuY2IjU1osdsKZnMoSIh+ yutmGfClp60scZ+iW5n2+uKCjys+QTiexObnO24bEnfQ8nUBBoAZQ3z0BArC+SZZR8D7 qmGcME4A34lVW9W/MTuzmlyLcrT4f/yLYinFwCUfV93QmAKIDssfW7kaqDHSG/tq+XD6 E7BF9IWVksuqmRt99N0+dxmSWFTDY5fR2DQad82vbManpm0iGbDrR681SSnaHSXPB3mW yKpg== X-Forwarded-Encrypted: i=1; AFNElJ/53dDWHdiztt/GKqCMYA48mjpvHbDrgkww6QkUU+d/MF/69VKL/BgzzPYM8iaKaUU4p5R6LgAbGhZlMroU@postgresql.org X-Gm-Message-State: AOJu0YyF0Y2s5eO3UdGGkmrq2tK4kQvLbYtv2Zytub/CCsbdZfkDyEIu Dtp8/FOPV4fJmDWrZP4qy5tqKdeNfR8bD4a3SyzK3UD3V6y7CBk6ACeF X-Gm-Gg: Acq92OFeoapi/4OKFzJuyXpBSe8Kji+cmfWvK8PWmBDBfzpy5k88+h2JLTAmXKUAI2L GhTAqzxN7V7ejBCW7pByRI0a9hyZFAbaaqAqga9e94gzuQ/iIonhrMaj95PQKz4njlXFHtp60TF 7Q6KaQfBcCpO4AZZabtuddf91Ra5RNc8U8sAvhPmP8RrPKzV2Roar8QKj6PiawOfItv1PReFjuS ESHGkBqTpHtDKgWceSch/zYqv7xpnD7bSqEwj27SgKZvT3bCu+k78HItDRrRn7yV87xeMzm2eKe +PogeNf+ZXqKQYIolQT/F8qSrDohK07ImZ0YLRemWkIbKF8oAzlgoDbLF2i05zfoTjqfKfyY9+C XebPnIG3tWVNyLwwybn/cdKt9z+/04CVg0T5BztCR2l6G88x6HsUCnqjRqeySj3i5OgamX29cLY G1uU7DPNAwZ5u0RT16WW22w5Ve8JoX4tA= X-Received: by 2002:a17:90b:3804:b0:35f:9ab2:a5bb with SMTP id 98e67ed59e1d1-36951a1cc30mr15499113a91.10.1779105455384; Mon, 18 May 2026 04:57:35 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c82bb121cd6sm13300087a12.30.2026.05.18.04.57.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2026 04:57:34 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Fix SPLIT PARTITION bound-overlap bug and other improvements From: Chao Li In-Reply-To: Date: Mon, 18 May 2026 19:56:55 +0800 Cc: Dmitry Koval , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <4B04275C-E044-4EEE-BE64-6FEEE73DCBB0@gmail.com> References: <4df20e70-a083-4334-9548-5f8b9025847c@postgrespro.ru> To: Alexander Korotkov X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 18, 2026, at 17:16, Alexander Korotkov = wrote: >=20 > On Mon, May 18, 2026 at 2:15=E2=80=AFAM Chao Li = wrote: >>> On May 18, 2026, at 05:45, Alexander Korotkov = wrote: >>>=20 >>> Hi, Chao! >>>=20 >>> On Thu, May 14, 2026 at 9:59=E2=80=AFAM Chao Li = wrote: >>>> To make this patch easier to process, I split it into 4 commits: >>>>=20 >>>> 0001 - Fixes the bound-overlap bug >>>> 0002 - Fix the incorrect HINT message for the DEFAULT case >>>> 0003 - Fix the incorrect description about combined bound in the = SGML doc >>>> 0004 - Reject only-create-default-partition usage >>>=20 >>> Thank you for your work. I've revised the patchset. >>> 0002 - I've also fixed gramma of hints in other branches >>> 0004 - In the check_split_partition_not_same_bound(), calling >>> partition_bounds_create() and partition_bounds_equal() looks a bit >>> heavyweight. It doesn't matter much performance-wise, but it feels >>> like start processing from scratch while we're on quite late stage >>> already. I've replaced that with more lightweight check. Also I >>> removed dealing with memory context. This code implies small >>> non-repetitive memory allocations which only lives during DDL >>> operation, no need to wrap them with memory context as we don't do = so >>> in other places. >>>=20 >>> Any objections if I commit this? >>>=20 >>> ------ >>> Regards, >>> Alexander Korotkov >>> Supabase >>=20 >> Hi Alexander, >>=20 >> Thanks for the revisions. I think you may have missed the = attachments, so I cannot review the changes. >=20 > Sorry. Here it is. >=20 > ------ > Regards, > Alexander Korotkov > Supabase > = v3-0001 through v3-0003 look good to me. For v3-0004, I have a suspicion, but it's late here and my brain is = getting slow, so I would like to study it more tomorrow. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/