From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18070: Assertion failed when processing error from plpy's iterator
Date: Sat, 16 Sep 2023 22:03:10 -0400
Message-ID: <3998850.1694916190@sss.pgh.pa.us> (raw)
In-Reply-To: <ZQZbbPA7NC5A0f4i@paquier.xyz>
References: <18070-ab9c171cbf4ebb0f@postgresql.org>
<9fa9c154-d084-07de-8224-aab7fc8a119e@gmail.com>
<ZQVm8KponTxqj8G3@paquier.xyz>
<3920993.1694874885@sss.pgh.pa.us>
<5eba3ea5-ae13-aab2-35d6-cd3e58dab08b@gmail.com>
<ZQY/Nfv20tt4PBzA@paquier.xyz>
<3984911.1694908923@sss.pgh.pa.us>
<ZQZbbPA7NC5A0f4i@paquier.xyz>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18070: Assertion failed when processing error from plpy's iterator
In-Reply-To: <3998850.1694916190@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox