Re: [HACKERS] Problems with output function of new datatype!

2004-11-16 Thread Tom Lane
[EMAIL PROTECTED] writes: > The real problem starts here: when i use the function as > select rational_out(rational_type) from testtable; > it works fine and returns a cstring. But when i execute > select rational_type from testtable; > then it dies with the error i mentioned before. Why

[HACKERS] Problems with output function of new datatype!

2004-11-16 Thread subhash
hi, I have programmed a rational datatype and provided it with an output function rational_out. The output function takes a rational data type as input and returns cstring as output. The postgres is giving an error server closed the connection unexpectedly This probably means the server