Replace remaining castNode(…, lfirst(…)) and friends calls with l*_node()

From: ilmari(at)ilmari(dot)org (Dagfinn Ilmari Mannsåker )
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Replace remaining castNode(…, lfirst(…)) and friends calls with l*_node()
Date: 2021-07-07 19:12:20
Message-ID: 87eecahraj.fsf@wibble.ilmari.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

We've had node-casting versions of the list extraction macros since
2017, but several cases of the written-out version have been added since
then (even by Tom, who added the l*_node() macros).

Here's a patch to convert the remaining ones. The macros were
back-patched to all supported branches, so this won't create any
new back-patching hazards.

- ilmari

Attachment Content-Type Size
0001-Use-l-_node-family-of-functions-where-appropriate.patch text/x-diff 13.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-07-07 19:22:06 Re: PostgreSQL 14 backend crash on incorrect trigger
Previous Message Maciek Sakrejda 2021-07-07 18:52:55 TOAST questions