pgsql: Fix thinkos in LookupFuncName() for function name lookups

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix thinkos in LookupFuncName() for function name lookups
Date: 2019-06-25 02:19:06
Message-ID: E1hfb34-00013o-6g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/52cdbdc42c23e4f9ae1e62e95bd85d11c030d3f6

Modified Files
--------------
src/backend/parser/parse_func.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2019-06-25 06:40:17 Re: pgsql: Drop test user when done with it.
Previous Message Michael Paquier 2019-06-25 00:19:18 pgsql: Add toast-level reloption for vacuum_index_cleanup