]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add a utility function to extract variadic function arguments
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 25 Oct 2017 11:13:11 +0000 (07:13 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 25 Oct 2017 11:20:48 +0000 (07:20 -0400)
commit7f89fc418223d7bfe5cafd5b781a84332954f82a
tree1bbbcd07905ea69df95d4ca015dfa5b66b44c7d2
parentba67fac85487e957ea98be8d06508bd2ebbd52f2
Add a utility function to extract variadic function arguments

This is epecially useful in the case or "VARIADIC ANY" functions. The
caller can get the artguments and types regardless of whether or not and
explicit VARIADIC array argument has been used. The function also
provides an option to convert arguments on type "unknown" to to "text".

Michael Paquier and me, reviewed by Tom Lane.

Backpatch to 9.4 in order to support the following json bug fix.
src/backend/utils/fmgr/funcapi.c
src/include/funcapi.h