pllua-ng
pllua-ng copied to clipboard
Uncaught Lua error: bad argument #1
Hi,
on one of our servers we get next error PANIC: Uncaught Lua error: bad argument #1 to '?' (datum), it is very randomly and we cant reproduce it. Is there any option that we get more info in postgres logs so we can see where is the problem (line number etc.)? Is there any pllua config or something?
Thanks
Sorry for the delayed response. That error shouldn't ever happen; the best way to diagnose it will be to get the stack trace (any PANIC error will result in a core dump if you enable those). Are you using the untrusted language and loading any modules?
Hi. I did miss this comment. Sorry. No, we are not using untrusted lang. We only load one module local jsonb = require "pllua.jsonb"; Ok, I will check if we have enabled core dumps for PANIC errors on servers, if not, we will enable it and I will come back.
Thanks for your reply!