Re: [HACKERS] Postgresql c function returning one row with 2 fileds

2013-11-12 Thread Robert Haas
On Sat, Nov 9, 2013 at 5:52 AM, lucamarletta wrote: > I'm new in postgresql c function and I start following examples. > > I want to write a simple function that have inside an SQL and passing > parameter evaluete anbd return 2 fields as sum (for now to be simpler). > > The function below has prob

[HACKERS] Postgresql c function returning one row with 2 fileds

2013-11-09 Thread lucamarletta
I'm new in postgresql c function and I start following examples. I want to write a simple function that have inside an SQL and passing parameter evaluete anbd return 2 fields as sum (for now to be simpler). The function below has problem passing the check (get_call_result_type(fcinfo, &resultTyp