Re: Converting contrib SQL functions to new style

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Ronan Dunklau <ronan(dot)dunklau(at)aiven(dot)io>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Subject: Re: Converting contrib SQL functions to new style
Date: 2025-01-08 04:18:36
Message-ID: Z338nKcSEImLC-4I@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 07, 2025 at 06:52:33PM -0800, Noah Misch wrote:
> It's more optimal to write '0'::bigint. That generates a CONST node, whereas
> 0::bigint generates a FUNCEXPR calling the cast function. No other concerns.

Makes sense, done this way.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Triveni N 2025-01-08 04:41:07 Re: NOT ENFORCED constraint feature
Previous Message Michael Paquier 2025-01-08 03:30:51 Re: Bug in v13 due to "Fix corruption when relation truncation fails."