[HACKERS] Type modifier parameter of input function

2012-07-13 Thread Michael Schneider
Hi, whenever pg calls my input function, the type modifier parameter is ALWAYS (-1). If I specify a type modifier like SELECT 'Hello World!'::my_string_type(MODIFIER1,MODIFIER2); then pg: 1. calls the my_string_type-typmod_in function, and gets the correct result 2. calls the

Re: [HACKERS] Type modifier parameter of input function

2012-07-13 Thread Tom Lane
Michael Schneider mschn...@mpi-bremen.de writes: whenever pg calls my input function, the type modifier parameter is ALWAYS (-1). ... How can I convince pg to call the input function with the correct type modifier? You can't. Per the comment in coerce_type: * For most types we