Re: BUG #17633: Define rule on views which do insert to another relation trigger cache lookup failed error.
Japin Li <japinli@hotmail.com>
From: Japin Li <japinli@hotmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Richard Guo <guofenglinux@gmail.com>, jiye_sw@126.com,
pgsql-bugs@lists.postgresql.org
Date: 2022-10-11T16:16:37Z
Lists: pgsql-bugs
Attachments
- test-case-for-bug-17633.patch (text/x-patch) patch
On Tue, 11 Oct 2022 at 23:37, Tom Lane <tgl@sss.pgh.pa.us> wrote: > I wrote: >> I think the basic problem is that the two calls of rewriteValuesRTE >> are really dealing with fundamentally different cases, and we should >> probably not have tried to make the same function do both. I'm going >> to try splitting it into two functions, one for the force_nulls case >> and one for the !force_nulls case. > > As attached. This seems *way* cleaner to me, even if it means we need > two copies of the loops-over-VALUES-list-entries. I didn't write a > regression test yet, but this fixes the submitted bug and passes > check-world. > Great. LGTM. Should we add the test-case for this? -- Regrads, Japin Li. ChengDu WenWu Information Technology Co.,Ltd.
Commits
-
Yet further fixes for multi-row VALUES lists for updatable views.
- addde9bc6caf 11.18 landed
- abc510fa2a34 12.13 landed
- 23e2a06acf04 10.23 landed
- b8f2687fdc41 16.0 landed
- 3162bd95cad3 14.6 landed
- 21e042b0bd47 13.9 landed
- 07ce6769824c 15.1 landed