From c723d3fe32babfddfc9e0e1ef2b4b8065a3c7b46 Mon Sep 17 00:00:00 2001 From: Ian Stanton Date: Thu, 29 Aug 2024 10:58:11 -0400 Subject: [PATCH 1/4] Bump pg_net to 0.10.0 Signed-off-by: Ian Stanton --- contrib/pg_net/Dockerfile | 2 +- contrib/pg_net/Trunk.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pg_net/Dockerfile b/contrib/pg_net/Dockerfile index 4f970bb1..119f2757 100644 --- a/contrib/pg_net/Dockerfile +++ b/contrib/pg_net/Dockerfile @@ -5,7 +5,7 @@ USER root # Install dependencies RUN apt-get update && apt-get install -y libcurl4-openssl-dev -ARG RELEASE=v0.7.1 +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..b2cdc6a8 100644 --- a/contrib/pg_net/Trunk.toml +++ b/contrib/pg_net/Trunk.toml @@ -1,6 +1,6 @@ [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." From 06ec85ff306302c02ae37aeeb973a3f00bf2514c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Miguel?= <36349314+vrmiguel@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:24:45 -0300 Subject: [PATCH 2/4] Update shared_preload_library --- contrib/pg_net/Trunk.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_net/Trunk.toml b/contrib/pg_net/Trunk.toml index b2cdc6a8..67e58d1b 100644 --- a/contrib/pg_net/Trunk.toml +++ b/contrib/pg_net/Trunk.toml @@ -5,7 +5,7 @@ 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"] From 8c69c66d9ce944d42bba07855a253b25a2b8bddf Mon Sep 17 00:00:00 2001 From: Ian Stanton Date: Thu, 29 Aug 2024 20:30:23 -0400 Subject: [PATCH 3/4] Install libcurl 7.83.0 Signed-off-by: Ian Stanton --- contrib/pg_net/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/pg_net/Dockerfile b/contrib/pg_net/Dockerfile index 119f2757..3996e510 100644 --- a/contrib/pg_net/Dockerfile +++ b/contrib/pg_net/Dockerfile @@ -3,7 +3,15 @@ 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 + +# 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 && \ + make && \ + make install ARG RELEASE=v0.10.0 From 15cf537dce59f90ce83dd40d634df0fdbf5b0bcc Mon Sep 17 00:00:00 2001 From: Ian Stanton Date: Thu, 29 Aug 2024 20:34:40 -0400 Subject: [PATCH 4/4] Configure with openssl Signed-off-by: Ian Stanton --- contrib/pg_net/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_net/Dockerfile b/contrib/pg_net/Dockerfile index 3996e510..15cc5b4c 100644 --- a/contrib/pg_net/Dockerfile +++ b/contrib/pg_net/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y wget 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 && \ + ./configure --with-openssl && \ make && \ make install