Modify lexing of multi-char operators per pghackers discussion around

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f945f46193690841315b79f5961d3721c73621d9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-03-18T18:03:12Z
Releases: 7.1.1
Modify lexing of multi-char operators per pghackers discussion around
16-Mar-00: trailing + or - is not part of the operator unless the operator
also contains characters not present in SQL92-defined operators.  This
solves the 'X=-Y' problem without unduly constraining users' choice of
operator names --- in particular, no existing Postgres operator names
become invalid.

Also, remove processing of // comments, as agreed in the same thread.

Files

PathChange+/−
doc/src/sgml/ref/create_operator.sgml modified +60 −27
doc/src/sgml/syntax.sgml modified +16 −9
src/backend/parser/scan.l modified +62 −18
src/bin/psql/mainloop.c modified +2 −3
src/interfaces/ecpg/preproc/pgc.l modified +71 −24