Closed
Description
I've been testing an upgrade to v1.5.0 from v1.4.4. And have been getting these errors when executing a plv8 function in the context of a bigger SELECT statement.
To narrow the scope of the problem, I've created a simple function to demonstrate:
CREATE OR REPLACE FUNCTION blah()
RETURNS jsonb
AS $$
return plv8.execute("SELECT 1")[0]
$$ LANGUAGE plv8;
-- Works fine
select blah();
-- Fails with error
select blah()
from some_table;
ERROR: buffer 1486 is not owned by resource owner TopTransaction
Query failed
PostgreSQL said: buffer 1486 is not owned by resource owner TopTransaction
Not sure if it had something to do with the table I'm using I ran the following:
select blah()
from pg_catalog.pg_language;
This also failed.
ERROR: buffer 1223 is not owned by resource owner TopTransaction
Query failed
PostgreSQL said: buffer 1223 is not owned by resource owner TopTransaction
Other debug info:
- Using docker image for postgres built using
clkao/postgres-plv8:9.5-1.5
Metadata
Metadata
Assignees
Labels
No labels