Add a utility function to extract variadic function arguments

Andrew Dunstan <andrew@dunslane.net>

Commit: 5c3a1bbb4778c9a4db6982e1f54add3164c81488
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2017-10-25T11:19:59Z
Releases: 9.6.6
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.

Files

PathChange+/−
src/backend/utils/fmgr/funcapi.c modified +114 −1
src/include/funcapi.h modified +23 −0