Re: Calling PLpgSQL function with composite type fails with an error: "ERROR: could not open relation with OID ..."
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ashutosh Sharma <ashu.coek88@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-12-27T03:50:34Z
Lists: pgsql-hackers
Ashutosh Sharma <ashu.coek88@gmail.com> writes: > Okay. Thanks for that fix. You've basically forced > revalidate_rectypeid() to update the PLpgSQL_rec's rectypeid > irrespective of typcache entry requires re-validation or not. Right. The assignment is cheap enough that it hardly seems worth avoiding. regards, tom lane
Commits
-
Fix possible loss of sync between rectypeid and underlying PLpgSQL_type.
- ee206cb830ef 11.7 landed
- 883c27a1cf9b 12.2 landed
- 4ba4bfaf256c 13.0 landed