Hi Sergio, Thanks indeed for sharing the function.
It logs because the PostgreSQL PQexec() function is returning pmacct something else than PGRES_COMMAND_OK. One suggestion might be to play with the exit/return code of the PL/PGSQL function. The error string ultimately is empty (and that is passed onto pmacct by the PostgreSQL API) meaning it should be working fine. Cheers, Paolo On Fri, Apr 30, 2010 at 02:40:50PM -0300, Sergio Charpinel Jr. wrote: > I did the function. But I'm calling it with select > function_name(table_name) , and I getting errors in nfacctd.log: > > [ ... ] > > Maybe because of the select. Just wanna know why it is still logging? _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
