postgresql/src/backend
Tom Lane 01e0cbc4f6 Fix YA unwanted behavioral difference with operator_precedence_warning.
Jeff Janes noted that the error cursor position shown for some errors
would vary when operator_precedence_warning is turned on.  We'd prefer
that option to have no undocumented effects, so this isn't desirable.
To fix, make sure that an AEXPR_PAREN node has the same exprLocation
as its child node.

(Note: it would be a little cheaper to use @2 here instead of an
exprLocation call, but there are cases where that wouldn't produce
the identical answer, so don't do it like that.)

Back-patch to 9.5 where this feature was introduced.

Discussion: https://postgr.es/m/CAMkU=1ykK+VhhcQ4Ky8KBo9FoaUJH3f3rDQB8TkTXi-ZsBRUkQ@mail.gmail.com
2017-02-15 14:44:18 -05:00
..
access Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
bootstrap Remove dead code in bootstrap 2017-01-17 16:54:40 -03:00
catalog Add CREATE SEQUENCE AS <data type> clause 2017-02-10 15:34:35 -05:00
commands Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
executor Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
foreign Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
lib Fix overflow check in StringInfo; add missing casts 2017-01-10 11:41:13 -03:00
libpq Fix typos in comments. 2017-02-06 11:33:58 +02:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
optimizer Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
parser Fix YA unwanted behavioral difference with operator_precedence_warning. 2017-02-15 14:44:18 -05:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postmaster btree: Support parallel index scans. 2017-02-15 07:41:14 -05:00
regex Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
replication Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00
rewrite Provide CatalogTupleDelete() as a wrapper around simple_heap_delete(). 2017-02-01 16:13:30 -05:00
snowball Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
storage Fix race condition in ConditionVariablePrepareToSleep. 2017-02-09 14:42:32 -05:00
tcop Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
tsearch Fix typos in comments. 2017-02-06 11:33:58 +02:00
utils Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00