Support domains over composite types in PL/Tcl.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Oct 2017 20:00:17 +0000 (16:00 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Oct 2017 20:00:17 +0000 (16:00 -0400)
commit820c0305f64507490f00b6220f9175a303c821dd
tree56547be8b69bb177194c6996b5eb5ffe788ab5d3
parent37a795a60b4f4b1def11c615525ec5e0e9449e05
Support domains over composite types in PL/Tcl.

Since PL/Tcl does little with SQL types internally, this is just a
matter of making it work with composite-domain function arguments
and results.

In passing, make it allow RECORD-type arguments --- that's a trivial
change that nobody had bothered with up to now.

Discussion: https://postgr.es/m/4206.1499798337@sss.pgh.pa.us
src/pl/tcl/expected/pltcl_queries.out
src/pl/tcl/pltcl.c
src/pl/tcl/sql/pltcl_queries.sql