Re: Date-time extraneous fields with reserved keywords - Mailing list pgsql-hackers

From Joseph Koshakow
Subject Re: Date-time extraneous fields with reserved keywords
Date
Msg-id CAAvxfHeZA43KTJZ7=-dpJR1MQkZXzXqozizqLFLh7t6Xya3swA@mail.gmail.com
Whole thread Raw
In response to Re: Date-time extraneous fields with reserved keywords  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Date-time extraneous fields with reserved keywords
Re: Date-time extraneous fields with reserved keywords
List pgsql-hackers


On Sat, Mar 4, 2023 at 2:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
>    Right.  So really we ought to move the ValidateDate call as
>    well as the next half-dozen lines about "mer" down into
>    the subsequent "do additional checking" stanza.  It's all
>    only relevant to normal date specs.
>
>    BTW, looking at the set of RESERV tokens in datetktbl[],
>    it looks to me like this change renders the final "default:"
>    case unreachable, so probably we could just make that an error.

Please see the attached patch with these changes.

- Joe Koshakow
Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Latches vs lwlock contention
Next
From: Tom Lane
Date:
Subject: Re: Date-Time dangling unit fix