Re: A really subtle lexer bug
Andrew Gierth <andrew@tao11.riddles.org.uk>
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2018-08-23T18:43:50Z
Lists: pgsql-hackers
Attachments
- 0001-Reduce-an-unnecessary-O-N-3-loop-in-lexer.patch (text/x-patch)
Here's what I will push unless there's something important I missed. I split the regression tests between create_operator.sql and polymorphism.sql, because => is really "named argument syntax" rather than an operator as such, and polymorphism.sql is where the existing tests were for that. I tried to keep the three lexers as closely matched as possible, even though psqlscan.l doesn't actually need some of the changes. -- Andrew (irc:RhodiumToad)
Commits
-
Fix lexing of standard multi-character operators in edge cases.
- d64fad666992 10.6 landed
- 5b4555f90c08 11.0 landed
- a40631a920ac 12.0 landed
- af988d13012f 9.5.15 landed
- 5ec70a928621 9.6.11 landed