checking variadic "any" argument in parser - should be array - Mailing list pgsql-hackers

From Pavel Stehule
Subject checking variadic "any" argument in parser - should be array
Date
Msg-id CAFj8pRDSYTpBFcq0m6rOB11431LCJuLDd4f5uNO8+NjqwY=YVA@mail.gmail.com
Whole thread Raw
Responses Re: checking variadic "any" argument in parser - should be array
List pgsql-hackers
Hello Tom

you did comment

! <----><------><------> * Non-null argument had better be an array.
The parser doesn't
! <----><------><------> * enforce this for VARIADIC ANY functions
(maybe it should?), so
! <----><------><------> * that check uses ereport not just elog.
! <----><------><------> */

So I moved this check to parser.

It is little bit stricter - requests typed NULL instead unknown NULL,
but it can mark error better and early

Regards

Pavel

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: proposal - assign result of query to psql variable
Next
From: Bruce Momjian
Date:
Subject: Re: COPY FREEZE has no warning