>hm. I wonder if this is confusion between value/reference datums. Can >you do a quick check to see exactly where it's crashing (either before >you get into the function, at the getarg, or in the return)? > >you can elog(WARNING, msg) to print out debug info from inside the function. > >merlin It's crashing exactly in the return At first time I had some problem with linking dll - linker could not found function "PG_RETURN_FLOAT8" - undefined reference to `Float8GetDatum' but I had solve this problem with adding "c:\pgsql\lib"-lpostgres Maybe I was wrong in this? -- View this message in context: http://old.nabble.com/C-functions%2C-dll%2C-server-fall-down-tp26710234p26810029.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general