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:14:21 +0000 (07:14 -0400)
commitfb17082d787ec6fbd8fe850f19a58c4a0fae72b9
tree24e3899ac66f77a5e52823a0a60783bfa29f2845
parenteccd9d9ff50b9f9124f5f76c62aa7c2c0ced5b87
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