Remove grammar productions for prefix and postfix % and ^ operators,
Tom Lane <tgl@sss.pgh.pa.us>
Remove grammar productions for prefix and postfix % and ^ operators, as well as the existing pg_catalog entries for prefix and postfix %. These have never been documented, though they did appear in one old regression test. This avoids surprising behavior in cases like "SELECT -25 % -10". Per recent discussion. Note: although there is a catalog change here, I did not force initdb since there's no harm in leaving the inaccessible entries in one's copy of pg_operator.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/comment.sgml | modified | +2 −2 |
| src/backend/parser/gram.y | modified | +1 −17 |
| src/include/catalog/pg_operator.h | modified | +1 −3 |
| src/test/regress/expected/float8-exp-three-digits.out | modified | +2 −2 |
| src/test/regress/expected/float8-exp-three-digits-win32.out | modified | +2 −2 |
| src/test/regress/expected/float8.out | modified | +2 −2 |
| src/test/regress/expected/float8-small-is-zero_1.out | modified | +2 −2 |
| src/test/regress/expected/float8-small-is-zero.out | modified | +2 −2 |
| src/test/regress/sql/float8.sql | modified | +2 −2 |