Change CREATE TYPE to require datatype output and send functions to have
Tom Lane <tgl@sss.pgh.pa.us>
Change CREATE TYPE to require datatype output and send functions to have only one argument. (Per recent discussion, the option to accept multiple arguments is pretty useless for user-defined types, and would be a likely source of security holes if it was used.) Simplify call sites of output/send functions to not bother passing more than one argument.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_type.sgml | modified | +7 −13 |
| src/backend/access/common/printtup.c | modified | +13 −25 |
| src/backend/bootstrap/bootstrap.c | modified | +3 −5 |
| src/backend/commands/copy.c | modified | +10 −18 |
| src/backend/commands/typecmds.c | modified | +5 −26 |
| src/backend/executor/spi.c | modified | +5 −15 |
| src/backend/nodes/print.c | modified | +4 −7 |
| src/backend/tcop/fastpath.c | modified | +9 −15 |
| src/backend/utils/adt/arrayfuncs.c | modified | +5 −12 |
| src/backend/utils/adt/rowtypes.c | modified | +5 −10 |
| src/backend/utils/adt/ruleutils.c | modified | +4 −7 |
| src/backend/utils/adt/varlena.c | modified | +3 −7 |
| src/backend/utils/cache/lsyscache.c | modified | +7 −7 |
| src/backend/utils/misc/guc.c | modified | +3 −5 |
| src/include/utils/lsyscache.h | modified | +3 −5 |
| src/pl/plperl/plperl.c | modified | +6 −13 |
| src/pl/plpgsql/src/pl_exec.c | modified | +3 −7 |
| src/pl/tcl/pltcl.c | modified | +7 −19 |