| From: | Kirill Reshke <reshkekirill(at)gmail(dot)com> | 
|---|---|
| To: | Tender Wang <tndrwang(at)gmail(dot)com> | 
| Cc: | Amit Langote <amitlangote09(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, jian he <jian(dot)universality(at)gmail(dot)com>, exclusion(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org | 
| Subject: | Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error | 
| Date: | 2025-10-30 13:31:09 | 
| Message-ID: | CALdSSPi6xR1tG2kLvpwNLnAjG9e0wmaY62r2_MF81ZYg5in+qQ@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-bugs | 
Hi!
On Thu, 30 Oct 2025 at 16:08, Tender Wang <tndrwang(at)gmail(dot)com> wrote:
>
> From the user's perspective, it's a bit confusing.
> I agree more with Tom’s opinion — we should throw an error like "cannot delete from foreign table p1"
> But the plan only had a dummy root relation; CheckValidResultRel() doesn't work.
> Some other code place may need to do something.
>
Tom wrote:
> It's surely pretty accidental (and arguably not desirable)
> if "DELETE FROM pt WHERE false" doesn't fail the same way.
I cannot prove to myself why failing here is actually desirable. Can
you elaborate?
-- 
Best regards,
Kirill Reshke
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-10-30 13:48:32 | Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error | 
| Previous Message | Amit Langote | 2025-10-30 13:17:11 | Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error |