| From: | Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> |
|---|---|
| To: | "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com> |
| Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, vignesh C <vignesh21(at)gmail(dot)com>, "ashutosh(dot)bapat(dot)oss(at)gmail(dot)com" <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com> |
| Subject: | Re: Crashes on a partition whose concurrent detach never finished |
| Date: | 2026-09-11 08:06:02 |
| Message-ID: | CABdArM7MRxJWgXLj3F_=qiMGESJ+ctU1yJLGJ7ynkAoRfx1PDw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Sep 11, 2026 at 12:52 PM Zhijie Hou (Fujitsu)
<houzj(dot)fnst(at)fujitsu(dot)com> wrote:
>
> Hi,
>
> On Friday, September 11, 2026 2:01 PM Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> wrote:
> >
> > Thanks for sharing the patch. It looks good to me. I’ve updated the attached
> > patch accordingly.
>
> The fix looks mostly good to me. The only nit is that we could avoid introducing
> a new Boolean flag by writing it like this:
>
> RelationBuildPublicationDesc()
> ..
> if (relation->rd_rel->relispartition)
> ancestors = get_partition_ancestors(relid);
>
> if (ancestors)
> {
> Oid last_ancestor_relid;
>
> last_ancestor_relid = llast_oid(ancestors);
> ...
>
Okay, agree. Changed as suggested.
Also addressed Shveta’s comments from [1] and Amit’s off-list suggestions.
Please find the updated patch attached.
--
Thanks,
Nisha
| Attachment | Content-Type | Size |
|---|---|---|
| v4_003-0001-Fix-crash-on-UPDATE-or-DELETE-of-a-partition-.patch | application/octet-stream | 7.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Antonin Houska | 2026-09-11 08:06:26 | Re: REPACK (CONCURRENTLY) fails when replica identity index is dropped |
| Previous Message | Amit Kapila | 2026-09-11 08:03:08 | Re: Review items for EXCEPT TABLE publication |