CSB writes:
I am curious why the second field is 0 and not any. Is that expected?
in db_mode = 1, proto field is coded when the in-memory table is filled and any is coded to 0.
sorry that i cannot find why allow_trusted fails for you. i guess your only choice is to all some LOG statements to the function and try to find out that way, why your query does not work.
-- juha