Re: [DEPARSE] Operators on ROW() constructors read back as row comparisons

From: Henson Choi <assam258(at)gmail(dot)com>
To: "crprashant(at)hotmail(dot)com" <crprashant(at)hotmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [DEPARSE] Operators on ROW() constructors read back as row comparisons
Date: 2026-10-21 06:04:01
Message-ID: CAAAe_zDHjm4zcVQjouv5nJp9Oy9C+fARvzdZXpL9+4-Jm89B+w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Prashant,

Thank you for the review and the testing. I only saw it after I had
sent v2, which is why v2 does not mention it.

> One coverage suggestion: the report names generated columns and
> BEGIN ATOMIC function bodies as silently corrupted stored
> expressions, but the tests exercise views only.

Good point. If Tom's review calls for a new version, I will add a
round-trip test for a generated column along with it.

v2 also records the cast in the parser, as Tom suggested, but the
ruleutils.c change you reviewed is still there as 0004 with the same
logic, so your checks of it still apply.

Best regards,
Henson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2026-10-21 06:10:59 Re: Two more RI fast-path issues
Previous Message Henson Choi 2026-10-21 05:46:11 Re: [DEPARSE] Operators on ROW() constructors read back as row comparisons