Joe Conway wrote:
> instead of type 18 (==char), which is what you need (and intended). I'm
> not sure what the proper way to define a function returning type char
> is
As a follow up, this works:
create OR REPLACE function retchar(text)
returns "char"
as '$libdir/retchar.so'
language 'c';
The quotes must prevent the typename from being rewritten to bpchar.
HTH,
Joe