Re: BUG #18070: Assertion failed when processing error from plpy's iterator
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Lakhin <exclusion@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2023-09-17T02:03:10Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> writes:
> Please find attached a proposal of patch for a backpatch, that applies
> on HEAD. The backpatch needs a few tweaks for alternate outputs, of
> course, depending on the version of python.
Yeah, the alternate output files will be a bit of a pain, but
should be straightforward as long as you're paying attention.
My only suggestion is that
+ plan = plpy.prepare("SELECT to_date('DD', 'DD') d")
+...
+DETAIL: spiexceptions.InvalidDatetimeFormat: invalid value "DD" for "DD"
seems unnecessarily ambiguous, and so confusing as to whether the error
message is correct. Let's make the input string be something other
than 'DD' here.
regards, tom lane
Commits
-
Fix assertion failure with PL/Python exceptions
- ddded779a773 11.22 landed
- 99d27e55ccac 12.17 landed
- 35e8ba3e54ec 13.13 landed
- bb65f3c1b25f 14.10 landed
- 9e0ce80f3d0c 15.5 landed
- f171430f089a 16.1 landed
- af5b3c3d1eae 17.0 landed