Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for postgreSQL 10 and 11 #26

Open
lsoica opened this issue Dec 16, 2018 · 0 comments
Open

Support for postgreSQL 10 and 11 #26

lsoica opened this issue Dec 16, 2018 · 0 comments

Comments

@lsoica
Copy link

lsoica commented Dec 16, 2018

For Postgresql 10 and 11 and plv8 2.3.9 (latest at the moment of writing), running plv8 -i after successfully running a plv8 --list returns:

2018-12-16 15:53:04.155 UTC [98] ERROR:  function "array_to_json" already exists with same argument types
2018-12-16 15:53:04.155 UTC [98] STATEMENT:
        SET client_min_messages TO WARNING;
        DO $PLV8X_EOF$ BEGIN

        DROP FUNCTION IF EXISTS array_to_json (__0 anyarray) CASCADE;
        EXCEPTION WHEN OTHERS THEN END; $PLV8X_EOF$;

        CREATE FUNCTION array_to_json (__0 anyarray) RETURNS plv8x.json AS $PLV8X__BODY__$
        ;
        return JSON.stringify((eval((function () {return (function(it){
          return it;
        }) })()))(__0));
        $PLV8X__BODY__$ LANGUAGE plv8 IMMUTABLE STRICT;
/plv8x/lib/index.js:29
        throw err;
        ^

Error: ERROR:  function "array_to_json" already exists with same argument types

    at module.exports.Client._readError (/plv8x/node_modules/pg-native/index.js:80:13)
    at module.exports.Client._read (/plv8x/node_modules/pg-native/index.js:121:19)
    at emitNone (events.js:106:13)
    at PQ.emit (events.js:208:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant