-- ten seconds should be enough to show this doesn't destroy memory set statement_timeout = '5s'; set pljs.memory_limit = '256'; do $$ Object.prototype [Symbol.iterator] = function() { return { next:() => this } }; [...({})]; $$ language pljs; ERROR: execution error DETAIL: InternalError: out of memory at (:2:1) at (:3:3) do $$ Object.prototype [Symbol.iterator] = function() { return { next:() => this } }; [...({})]; $$ language pljs; ERROR: execution error DETAIL: InternalError: out of memory at (:2:1) at (:3:3)