Re: FWD: tinterval vs interval on pgsql-novice - Mailing list pgsql-hackers

From Tom Lane
Subject Re: FWD: tinterval vs interval on pgsql-novice
Date
Msg-id 14618.975422977@sss.pgh.pa.us
Whole thread Raw
In response to Re: FWD: tinterval vs interval on pgsql-novice  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>   select ('today', interval '1 day') OVERLAPS ('yesterday', interval '18
> hours');

> (the second one fails). Now that I look, this breakage was introduced in
> March when "we" expunged operators allowed as identifiers (Tom Lane and
> I have blood on our hands on this one ;) See gram.y around line 5409.

I see it does fail, but I'm at a complete loss to understand why,
especially given that the first case still works.  The grammar looks
perfectly fine AFAICT.  Can you explain what's wrong here?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: is it a bug?
Next
From: Don Baccus
Date:
Subject: Re: beta testing version