Fix thinkos in LookupFuncName() for function name lookups

Michael Paquier <michael@paquier.xyz>

Commit: 131e545ac304a3f5c4f8575131f4b338232cac0d
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-06-25T02:16:04Z
Releases: 10.10
Fix thinkos in LookupFuncName() for function name lookups

This could trigger valgrind failures when doing ambiguous function name
lookups when no arguments are provided by the caller.  The problem has
been introduced in aefeb68, so backpatch to v10.  HEAD is fine thanks to
the refactoring done in bfb456c1.

Reported-by: Alexander Lakhin
Author: Alexander Lakhin, Michael Paquier
Discussion: https://postgr.es/m/3d068be5-f617-a5ee-99f6-458a407bfd65@gmail.com
Backpatch-through: 10

Files

PathChange+/−
src/backend/parser/parse_func.c modified +8 −2

Discussion