postgresql/src/backend/optimizer/util
Tom Lane 000f557c31 Fix style violations in syscache lookups.
Project style is to check the success of SearchSysCacheN and friends
by applying HeapTupleIsValid to the result.  A tiny minority of calls
creatively did it differently.  Bring them into line with the rest.

This is just cosmetic, since HeapTupleIsValid is indeed just a null
check at the moment ... but that may not be true forever, and in any
case it puts a mental burden on readers who may wonder why these
call sites are not like the rest.

Back-patch to v11 just to keep the branches in sync.  (The bulk of these
errors seem to have originated in v11 or v12, though a few are old.)

Per searching to see if anyplace else had made the same error
repaired in 62148c352.
2019-05-05 13:10:07 -04:00
..
clauses.c Fix incorrect strictness test for ArrayCoerceExpr expressions. 2019-02-20 13:36:55 -05:00
joininfo.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Avoid sharing PARAM_EXEC slots between different levels of NestLoop. 2019-01-11 15:54:08 -05:00
orclauses.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
paramassign.c Avoid sharing PARAM_EXEC slots between different levels of NestLoop. 2019-01-11 15:54:08 -05:00
pathnode.c Ensure that foreign scans with lateral refs are planned correctly. 2019-02-07 13:11:13 -05:00
placeholder.c Disable support for partitionwise joins in problematic cases. 2018-08-31 20:47:17 +09:00
plancat.c Fix style violations in syscache lookups. 2019-05-05 13:10:07 -04:00
predtest.c Improve predtest.c's handling of cases with NULL-constant inputs. 2018-03-21 18:30:46 -04:00
relnode.c Ensure that foreign scans with lateral refs are planned correctly. 2019-02-07 13:11:13 -05:00
restrictinfo.c Change more places to be less trusting of RestrictInfo.is_pushed_down. 2018-04-20 15:19:16 -04:00
tlist.c Fix mishandling of sortgroupref labels while splitting SRF targetlists. 2018-06-21 10:58:42 -04:00
var.c Update copyright for 2018 2018-01-02 23:30:12 -05:00