pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix inconsistent equalfuncs.c behavior for FuncCall.funcformat.
Date: Sun, 06 Jun 2021 19:47:04 +0000
Message-ID: <E1lpyjg-0002qI-KR@gemulon.postgresql.org> (raw)

Fix inconsistent equalfuncs.c behavior for FuncCall.funcformat.

Other equalfuncs.c checks on CoercionForm fields use
COMPARE_COERCIONFORM_FIELD (which makes them no-ops),
but commit 40c24bfef neglected to make _equalFuncCall
do likewise.  Fix that.

This is only strictly correct if FuncCall.funcformat has
no semantic effect, instead just determining ruleutils.c
display formatting.  40c24bfef added a couple of checks
in parse analysis that could break that rule; but on closer
inspection, they're redundant, so just take them out again.

Per report from Noah Misch.

Discussion: https://postgr.es/m/20210606063331.GC297923@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a65e9f3f1405b786673feec131879843432bf9a6

Modified Files
--------------
src/backend/nodes/equalfuncs.c    | 2 +-
src/backend/parser/parse_clause.c | 1 -
src/backend/parser/parse_func.c   | 1 -
3 files changed, 1 insertion(+), 3 deletions(-)



Message-ID: <E1lpyjg-0002qI-KR@gemulon.postgresql.org>
Permalink:  ../E1lpyjg-0002qI-KR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lpyjg-0002qI-KR@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix inconsistent equalfuncs.c behavior for FuncCall.funcformat.
  In-Reply-To: <E1lpyjg-0002qI-KR@gemulon.postgresql.org>
  References: <E1lpyjg-0002qI-KR@gemulon.postgresql.org>

* 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