8000 v1.5.0 error: buffer XXXX is not owned by resource owner TopTransaction · Issue #164 · plv8/plv8 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
v1.5.0 error: buffer XXXX is not owned by resource owner TopTransaction #164
Closed
@smerchek

Description

@smerchek

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0