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 1wVUKs-001zxI-0c for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2026 13:11:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVUKr-00CaPU-0H for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2026 13:11:41 +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 1wVUKq-00CaPG-2B for pgsql-bugs@lists.postgresql.org; Fri, 05 Jun 2026 13:11:40 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVUKo-00000001F0L-42mp for pgsql-bugs@lists.postgresql.org; Fri, 05 Jun 2026 13:11:39 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-3967717c951so20759011fa.1 for ; Fri, 05 Jun 2026 06:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780665097; cv=none; d=google.com; s=arc-20240605; b=UKkfJQ9EruvswtLKaolWwiMyb/2C2rG2U4Z8gLd5XbZ6zg2cyvLcXi52mNLDYNYxje Rdk/pcBJQFFZFPQexeK1IKac2CpoEHaYqvWgt5VrZ+bSBSLV6jIsqO+B5zQt2QcSzn/X GqILr4DdMdsQSWn88jrA6w3fmJg/Y+TYDUZ9KV9rAkz497uCeP2IyBDBoMG5bx6I9oOR QKioIXT1JUMhBZHe/kdYsqCnLaB4ZtKCKVftQnvabh5c1GwL9Zl7m3reirNgHkaVb8U1 j4MCDsYwWoFS2YjyhFHeN+6kSV38z6QKRVrlAOnErLqxluIqMeziUHytgKJvc8DL0nzg 0ELg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=qCi8H98EoXS5rmEW4IA/A6bHaTrzD8j/G5yK2I3kU6I=; fh=R0daaj6cpxsCgIZ6gMXGF6QGpCMxMBReOAL0c7l3/jk=; b=DqJ2hlT2D91/HBdM022WwrRreipxfOXV3B9ZclYddMWkio5dykVJngMDhscX5dLfMP lfe4j25S3B9uW/MN/U5CAVe7iryLjH2RoimmhWeUSldnaVg9isDTRup75yNL3Dz8Zwz4 IuyKL5L6QlDC5h8LldsyAA/ldAlorWFhjYDGhJb1I61NLhLg883LjwiYOhIsb/y4Lfbq q2jewg9HEHLaxEgvuAA6zHKq+UFIU8pxy3cXbFLT49aSs0JU/tyFB4p07qYMzDs8tmZw aoArCKnBe0lPkhVVhKJ8sW86kLiT7Rbeuk7ffZ1h6wwJetxMx/ekHGeidKIqCBEwOPCb fZ9g==; 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=1780665097; x=1781269897; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qCi8H98EoXS5rmEW4IA/A6bHaTrzD8j/G5yK2I3kU6I=; b=ZoQC+Ccj5fAR6uDjVoupyRYnkE8r1Ujz0VTf4piRHEPT58hNbLngDmrEi3bJUj0oHa FfJqA904/cUVBpJ3E90ZKaDKtY5VY4Zhl+HrjrAO3XRzB5pFnjWHR68SOQgmWqNGe8qj YkmxOxN7GdEU+hq65gzZV9RJAiHI7hmutG74jtXMvEh960JbygiVkOV55ihrbYoHLpkN kow+xaVUPj/nqA9MquizxviSSKd6hwACUSxBKXEKMawoAZEus+9emBD/yV7VSD44rR4k AZ43BnX8vugqa2EXs0eqtxxTHfSIHA2o78AOcng9dSFcsXXzMMscdwbSjbYgiAFlxPGK ZJ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780665097; x=1781269897; h=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=qCi8H98EoXS5rmEW4IA/A6bHaTrzD8j/G5yK2I3kU6I=; b=p4QvRdVJ2Bnp8LCXhuQm+BcQePYQuq9F6qTrt5ljXgw4LnRs1RdrBuzihHzLavjA+e 7JeRPOUiOL5Hwqfi+rp6Gg5+gFhB7Yl1UHfXQqMwC9rWOtsKl95ruYWHeghlhnExof7R sPYX9h/2sgydCtJpKlwhp4zEcsTL77O9udcZnesl5XEjM9G8O0o8blsMXUipon+nQ2T+ mydxPrQYKA52UEPceNRUfq1exoWB0KzUdfKbrrUx0cSW0DUI1PGceSJB7FrHwYLkgEK6 l7Uo/m10cnOaHPjcOaoT+8vqM196P/NT0t9R/t/fAvtSuCbzd/JpsyiZyZ+GexvHNlyx oyaA== X-Gm-Message-State: AOJu0YznsWGKaYILY4h5kmlUqkRhTLFIl66GMQCYZANTpTDPZ6ybave2 SfXcHk1uJJc7vaWljs5mDZhrpA1e7e2irHhBbHX4APZzi7r/kaB0SSOq2RIS2S4DoLwMwj/3QTl xF22oP8+HqX0elzFugo8XyGlFg3cSwE+Wj5FU X-Gm-Gg: Acq92OETmGH8yxessNztWRc3uQEWTwRzPh3WIkaWQErndAt41HL54ezIevmdrI6pU3F O9w2VNoOXs/wghRRPqJMs9HPkQH2Fy5ZXZoSqfVxqQpqBvn9R1ohmuQGUCP+Rp6xVPqsH/rhmX9 umLhvcFPJT5lf+Cj6N/GuJzT/zlN4a9cpZbGrsBFHFn/ImfBQGyfaMWOQXG6XnvXBmeVsR/j5ab a1qkikPgar4Bc7wAMuTSclvb8hq71XddWZy4Z3+UX0eQY6s7jAGQrQ5YkLDtvCwYKqUVTxlOfG/ KJ1zC1XM2axFaipG+SHMy5m3dmzotylMlmBdclur5yg1jKr9vjhQWa9OVnglNiKPNY4HuDStLFx GlkE5ZE1Y9RJgcKV2 X-Received: by 2002:ac2:5307:0:b0:5a8:8db6:b3d with SMTP id 2adb3069b0e04-5aa87be8cabmr742352e87.24.1780665097153; Fri, 05 Jun 2026 06:11:37 -0700 (PDT) MIME-Version: 1.0 References: <19507-78eec77213b5284f@postgresql.org> <8690FCD2-B96C-4C0B-BFAC-94E9383A47AA@Outlook.com> <2856BB12-6389-4F06-9B35-576B838B669E@Outlook.com> In-Reply-To: <2856BB12-6389-4F06-9B35-576B838B669E@Outlook.com> From: Marko Grujic Date: Fri, 5 Jun 2026 15:11:25 +0200 X-Gm-Features: AVVi8CfOMcNV5427ciHsZzL8Tj19GONGqLxoWX59zs3P226qLCKVGCvZ4MunH4c Message-ID: Subject: Re: BUG #19507: Auto-named partition table constraint conflicts To: Chengpeng Yan Cc: "pgsql-bugs@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000946f9e0653816684" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000946f9e0653816684 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No worries; yeah, a review would be greatly appreciated, thank you. On Fri, Jun 5, 2026 at 3:09=E2=80=AFPM Chengpeng Yan wrote: > > > On Jun 5, 2026, at 21:01, Marko Grujic wrote: > > > > Hi Chengpeng, > > > > Thanks for the heads up. > > > > > My current plan is to preserve the > > existing behavior for explicitly named constraints, but make > > automatically generated names avoid conflicts that would be hit during > > recursive propagation. In other words, when considering a generated > > candidate name for the parent, the code should also consider whether > > using that name throughout the relevant partition/inheritance tree woul= d > > run into a name conflict. > > > > Fyi, I also have a patch up already with that exact purpose: > https://www.postgresql.org/message-id/CAOvwyF1JsmerqF6hA005rb6YLP%3DpQAPO= JCAKnr398%3D0ReZG%3DAA%40mail.gmail.com > > > > Cheers, > > Marko > > > Sorry, I hadn't noticed that you had already posted a patch for this. > > Thanks for pointing it out. I'll take a look and try to review it when I > get some time. > > -- > Best regards, > Chengpeng Yan --000000000000946f9e0653816684 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No worries; yeah, a review would be greatly appreciated, t= hank you.

On Fri, Jun 5, 2026 at 3:09=E2=80=AFPM Cheng= peng Yan <chengpeng_yan@out= look.com> wrote:

> On Jun 5, 2026, at 21:01, Marko Grujic <markoog@gmail.com> wrote:
>
> Hi Chengpeng,
>
> Thanks for the heads up.
>
> > My current plan is to preserve the
> existing behavior for explicitly named constraints, but make
> automatically generated names avoid conflicts that would be hit during=
> recursive propagation. In other words, when considering a generated > candidate name for the parent, the code should also consider whether > using that name throughout the relevant partition/inheritance tree wou= ld
> run into a name conflict.
>
> Fyi, I also have a patch up already with that exact purpose: https://www.postgresql.org/message-id/CAOvwyF1JsmerqF6hA005rb6YLP%3DpQ= APOJCAKnr398%3D0ReZG%3DAA%40mail.gmail.com
>
> Cheers,
> Marko


Sorry, I hadn't noticed that you had already posted a patch for this.
Thanks for pointing it out. I'll take a look and try to review it when = I
get some time.

--
Best regards,
Chengpeng Yan
--000000000000946f9e0653816684--