diff --git a/contrib/pg_net/Dockerfile b/contrib/pg_net/Dockerfile index 4f970bb1..15cc5b4c 100644 --- a/contrib/pg_net/Dockerfile +++ b/contrib/pg_net/Dockerfile @@ -3,9 +3,17 @@ FROM quay.io/coredb/c-builder:pg${PG_VERSION} USER root # Install dependencies -RUN apt-get update && apt-get install -y libcurl4-openssl-dev +RUN apt-get update && apt-get install -y wget -ARG RELEASE=v0.7.1 +# Install libcurl version 7.83.0 +RUN wget https://curl.se/download/curl-7.83.0.tar.gz && \ + tar -xvf curl-7.83.0.tar.gz && \ + cd curl-7.83.0 && \ + ./configure --with-openssl && \ + make && \ + make install + +ARG RELEASE=v0.10.0 # Clone repository RUN git clone https://github.com/supabase/pg_net.git diff --git a/contrib/pg_net/Trunk.toml b/contrib/pg_net/Trunk.toml index eb7ff401..67e58d1b 100644 --- a/contrib/pg_net/Trunk.toml +++ b/contrib/pg_net/Trunk.toml @@ -1,11 +1,11 @@ [extension] name = "pg_net" -version = "0.7.1" +version = "0.10.0" repository = "https://github.com/supabase/pg_net" license = "Apache-2.0" description = "A PostgreSQL extension providing an async networking interface accessible via SQL using a background worker and curl." categories = ["connectors"] -preload_libraries = ["pg_net"] +loadable_libraries = [{ library_name = "pg_net", requires_restart = true }] [dependencies] apt = ["libcurl4", "libc6"]