postgresql/src/backend
Tom Lane 05104f6936 Fix grammar's AND/OR flattening to work with operator_precedence_warning.
It'd be good for "(x AND y) AND z" to produce a three-child AND node
whether or not operator_precedence_warning is on, but that failed to
happen when it's on because makeAndExpr() didn't look through the added
AEXPR_PAREN node.  This has no effect on generated plans because prepqual.c
would flatten the AND nest anyway; but it does affect the number of parens
printed in ruleutils.c, for example.  I'd already fixed some similar
hazards in parse_expr.c in commit abb164655, but didn't think to search
gram.y for problems of this ilk.  Per gripe from Jean-Pierre Pelletier.

Report: <fa0535ec6d6428cfec40c7e8a6d11156@mail.gmail.com>
2016-06-03 19:12:29 -04:00
..
access Fix various common mispellings. 2016-06-03 16:08:45 +01:00
bootstrap Revert CREATE INDEX ... INCLUDING ... 2016-04-08 21:52:13 +03:00
catalog Fix various common mispellings. 2016-06-03 16:08:45 +01:00
commands Fix comment to be more accurate. 2016-06-03 11:56:57 -04:00
executor Mark read/write expanded values as read-only in ValuesNext(), too. 2016-06-03 18:07:14 -04:00
foreign Fix whitespace 2016-04-11 14:44:51 -04:00
lib Remove mergeHyperLogLog. 2016-04-27 10:55:32 -04:00
libpq Add authentication parameters compat_realm and upn_usename for SSPI 2016-04-08 20:28:38 +02:00
main Fix various common mispellings. 2016-06-03 16:08:45 +01:00
nodes Fix various common mispellings. 2016-06-03 16:08:45 +01:00
optimizer Remove bogus code to apply PathTargets to partial paths. 2016-06-03 14:27:33 -04:00
parser Fix grammar's AND/OR flattening to work with operator_precedence_warning. 2016-06-03 19:12:29 -04:00
po Translation updates 2016-05-09 10:04:41 -04:00
port Support building with Visual Studio 2015 2016-04-29 08:09:07 -04:00
postmaster Avoid useless closely-spaced writes of statistics files. 2016-05-31 15:55:15 -04:00
regex Suppress compiler warnings about useless comparison of unsigned to zero. 2016-02-15 17:12:16 -05:00
replication Fix various common mispellings. 2016-06-03 16:08:45 +01:00
rewrite Improve error message for rejecting RETURNING clauses with dropped columns. 2016-02-29 19:11:38 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Fix various common mispellings. 2016-06-03 16:08:45 +01:00
tcop Be more predictable about reporting "lock timeout" vs "statement timeout". 2016-05-27 10:40:20 -04:00
tsearch Fix various common mispellings. 2016-06-03 16:08:45 +01:00
utils Inline the easy cases in MakeExpandedObjectReadOnly(). 2016-06-03 18:34:05 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Support multiple synchronous standby servers. 2016-04-06 17:18:25 +09:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00