postgresql/src/backend/optimizer/util
Tom Lane 9691aa72e2 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
..
appendinfo.c Fix style violations in syscache lookups. 2019-05-05 13:10:07 -04:00
clauses.c Improve planner's understanding of strictness of type coercions. 2019-02-20 14:39:11 -05:00
inherit.c Speed up planning when partitions can be pruned at plan time. 2019-03-30 18:58:55 -04:00
joininfo.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Avoid sharing PARAM_EXEC slots between different levels of NestLoop. 2019-01-11 15:54:06 -05:00
orclauses.c Refactor planner's header files. 2019-01-29 15:48:51 -05:00
paramassign.c Avoid sharing PARAM_EXEC slots between different levels of NestLoop. 2019-01-11 15:54:06 -05:00
pathnode.c Use Append rather than MergeAppend for scanning ordered partitions. 2019-04-05 19:20:43 -04:00
placeholder.c Refactor planner's header files. 2019-01-29 15:48:51 -05:00
plancat.c Fix style violations in syscache lookups. 2019-05-05 13:10:07 -04:00
predtest.c Teach optimizer's predtest.c more things about ScalarArrayOpExpr. 2019-03-01 17:14:17 -05:00
relnode.c Compute root->qual_security_level in a less random place. 2019-03-31 13:47:41 -04:00
restrictinfo.c Refactor the representation of indexable clauses in IndexPaths. 2019-02-09 17:30:43 -05:00
tlist.c Collations with nondeterministic comparison 2019-03-22 12:12:43 +01:00
var.c Refactor planner's header files. 2019-01-29 15:48:51 -05:00