Hi,
Does anybody have an opinion about introducing generic pseudotype IO
functions? Pseudotype.c/pg_proc.h are slowly growing a number of pretty
useless/redundant copy&pasted functions... Most for cases that are
pretty damn unlikely to be hit by users not knowing what they do.
What about adding a pseudotype_in/out that just error out with a generic
message?
We could start trying to guess the type they are operating on using
get_fn_expr_rettype/get_fn_expr_argtype but that'd require modifying
several callers not providing that info to work reliably?
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services