makeAndExpr(), etc. confined to gram.y? - Mailing list pgsql-hackers

From Amit Langote
Subject makeAndExpr(), etc. confined to gram.y?
Date
Msg-id CA+HiwqE2fSsMZYm9VwBi4HaxSSoABHSu9kk9bqJUPug1u=4xTg@mail.gmail.com
Whole thread Raw
Responses Re: makeAndExpr(), etc. confined to gram.y?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

A recent commit titled "Avoid recursion when processing simple lists
of AND'ed or OR'ed clauses."
(2146f13408cdb85c738364fe8f7965209e08c6be) got rid of AEXPR_AND, etc.
and instead created makeAndExpr(), etc. in gram.y

Is there a reason why they've been left out of
makefuncs.h/makefuncs.c? Perhaps they are not supposed to be used
outside gram.y at all? For example, previously a caller (potentially)
outside parser could do a makeA_Expr(AEXPR_AND, ...). I guess this is
no longer possible with AEXPR_AND gone?

--
Amit



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pgaudit - an auditing extension for PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #10728: json_to_recordset with nested json objects NULLs columns