Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error
Kirill Reshke <reshkekirill@gmail.com>
From: Kirill Reshke <reshkekirill@gmail.com>
To: Tender Wang <tndrwang@gmail.com>
Cc: Amit Langote <amitlangote09@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, jian he <jian.universality@gmail.com>, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2025-10-30T13:31:09Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix bogus ctid requirement for dummy-root partitioned targets
- f9a468c664a4 19 (unreleased) landed
- 9f4b7bfc5eb6 18.2 landed
- 933f67fb6a79 17.8 landed
- fab386f74888 16.12 landed
- 687533b39ecf 15.16 landed
- 6d2fa44d2a61 14.21 landed
Hi! On Thu, 30 Oct 2025 at 16:08, Tender Wang <tndrwang@gmail.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