Re: Segfault on logical replication to partitioned table with foreign children

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ilya Gladyshev <ilya(dot)v(dot)gladyshev(at)gmail(dot)com>
Cc: "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Segfault on logical replication to partitioned table with foreign children
Date: 2022-11-02 16:37:42
Message-ID: 1787918.1667407062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Since we're getting pretty close to the next set of back-branch releases,
I went ahead and pushed a minimal fix along the lines suggested by Shi Yu.
(I realized that there's a second ExecFindPartition call in worker.c that
also needs a check.) We still can at leisure think about refactoring
CheckSubscriptionRelkind to avoid unnecessary lookups. I think that
is something we should do only in HEAD; it'll just be a marginal savings,
not worth the risks of API changes in stable branches. The other loose
end is whether to worry about a regression test case. I'm inclined not
to bother. The only thing that isn't getting exercised is the actual
ereport, which probably isn't in great need of routine testing.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Imseih (AWS), Sami 2022-11-02 16:52:19 Re: Add index scan progress to pg_stat_progress_vacuum
Previous Message Jehan-Guillaume de Rorthais 2022-11-02 16:24:35 Re: psql: Add command to use extended query protocol