]> granicus.if.org Git - postgresql/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:37 +0000 (07:20 -0400)
commit5c8dcd322c0ef38c257c80813de9afb0107ccc98
tree0649fd843823d929002754995ce66b3137ac7579
parent1e57d85cdaee2faee2a2863a2b3bd1c675d4734b
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