From e6b25a34d200949b8b117bf9ad22dd5087ac401e Mon Sep 17 00:00:00 2001 From: Vadim Kharitonov Date: Wed, 22 Feb 2023 12:29:27 +0100 Subject: [PATCH] Fix `pg_jsonschema` and `pg_graphql` --- Dockerfile.compute-node | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.compute-node b/Dockerfile.compute-node index 2f34f6dc1509..9e02f278c185 100644 --- a/Dockerfile.compute-node +++ b/Dockerfile.compute-node @@ -221,6 +221,8 @@ FROM rust-extensions-build AS pg-jsonschema-pg-build RUN git clone --depth=1 --single-branch --branch neon_abi_v0.1.4 https://github.com/vadim2404/pg_jsonschema/ && \ cd pg_jsonschema && \ cargo pgx install --release && \ + # it's needed to enable extension because it uses untrusted C language + sed -i 's/superuser = false/superuser = true/g' /usr/local/pgsql/share/extension/pg_jsonschema.control && \ echo "trusted = true" >> /usr/local/pgsql/share/extension/pg_jsonschema.control ######################################################################################### @@ -235,6 +237,8 @@ FROM rust-extensions-build AS pg-graphql-pg-build RUN git clone --depth=1 --single-branch --branch neon_abi_v1.1.0 https://github.com/vadim2404/pg_graphql && \ cd pg_graphql && \ cargo pgx install --release && \ + # it's needed to enable extension because it uses untrusted C language + sed -i 's/superuser = false/superuser = true/g' /usr/local/pgsql/share/extension/pg_graphql.control && \ echo "trusted = true" >> /usr/local/pgsql/share/extension/pg_graphql.control #########################################################################################