Re: BUG #17633: Define rule on views which do insert to another relation trigger cache lookup failed error.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Japin Li <japinli@hotmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>, jiye_sw@126.com,
pgsql-bugs@lists.postgresql.org
Date: 2022-10-11T15:37:12Z
Lists: pgsql-bugs
Attachments
- fix-bug-17633.patch (text/x-diff) patch
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. regards, tom lane
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