Re: BUG #17610: Use of multiple composite types incompatible with record-typed function parameter
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Japin Li <japinli@hotmail.com>
Cc: mjurca@centrum.cz, pgsql-bugs@lists.postgresql.org
Date: 2022-09-16T17:28:02Z
Lists: pgsql-bugs
Japin Li <japinli@hotmail.com> writes: > On Fri, 09 Sep 2022 at 02:36, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> So really the way we ought to fix this is to upgrade the parser >> APIs so that plpgsql could deal with "$1.f1" as a unit. But >> that seems like a lot of work, and it would certainly not be >> back-patchable. > Tested and looks good! After letting this bake awhile, I still haven't thought of a better idea. Also, even if we wanted to invest the effort to make "$1.f1" an integrated construct, I think you could still easily break it, say with syntax like "($1).f1". The variant "(arg).f1" would be problematic too without this change. Hence, pushed as-is. regards, tom lane
Commits
-
Improve plpgsql's ability to handle arguments declared as RECORD.
- c18d946e2352 13.9 landed
- bfd6b3bc4e19 16.0 landed
- b759bb6714f0 15.0 landed
- b3b88d7480b8 12.13 landed
- 7391ab28a63f 11.18 landed
- 56d45fdab7b1 14.6 landed
-
Tighten enforcement of variable CONSTANT markings in plpgsql.
- ccd10a9bfa54 15.0 cited