From 186135e7380b5081a8ec9e1f222fef46e19883ca Mon Sep 17 00:00:00 2001 From: Sam Vevang Date: Thu, 13 Aug 2026 09:42:38 -0500 Subject: [PATCH] Update to 18.3 --- etc/pgdump-to-s3/README.md | 20 ++++++++++---------- etc/pgdump-to-s3/template.yml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/etc/pgdump-to-s3/README.md b/etc/pgdump-to-s3/README.md index 2ee049a4a..8e86f9c32 100644 --- a/etc/pgdump-to-s3/README.md +++ b/etc/pgdump-to-s3/README.md @@ -7,7 +7,7 @@ From within this directory: git clone https://github.com/jameshy/pgdump-aws-lambda.git lambda-src/pgdump-aws-lambda ``` -Then copy the `postgres-17.7/` folder into `lambda-src/pgdump-aws-lambda/bin/` +Then copy the `postgres-18.3/` folder into `lambda-src/pgdump-aws-lambda/bin/` Deploy: ```bash @@ -16,29 +16,29 @@ sam build && sam deploy --resolve-s3 --config-env=staging ## Building Custom PostgreSQL Binaries (Optional) -This repository includes pre-built PostgreSQL 17.7 binaries for x86_64 architecture. If you need to build different versions or architectures: +This repository includes pre-built PostgreSQL 18.3 binaries for x86_64 architecture. If you need to build different versions or architectures: ### Using Docker (Recommended) ```bash -# Build PostgreSQL 17.7 binaries for x86_64 (Lambda compatible) +# Build PostgreSQL 18.3 binaries for x86_64 (Lambda compatible) docker run -it --rm --platform linux/amd64 -v $(pwd):/workspace amazonlinux:2023 bash # Inside the container: dnf install -y make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel wget tar gzip bison flex perl perl-FindBin # Build PostgreSQL -wget https://ftp.postgresql.org/pub/source/v17.7/postgresql-17.7.tar.gz -tar zxf postgresql-17.7.tar.gz -cd postgresql-17.7 +wget https://ftp.postgresql.org/pub/source/v18.3/postgresql-18.3.tar.gz +tar zxf postgresql-18.3.tar.gz +cd postgresql-18.3 ./configure --with-ssl=openssl make make install DESTDIR=/workspace/postgres-build # Copy binaries to project -mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7 -cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7/ -cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7/ +mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-18.3 +cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-18.3/ +cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-18.3/ ``` ### Using EC2 (Alternative) @@ -56,5 +56,5 @@ After building custom binaries, update your `template.yml` to reference the new In the `AuguryCron` target Input, add or update the `PGDUMP_PATH`: ```yaml -"PGDUMP_PATH": "bin/postgres-17.7" +"PGDUMP_PATH": "bin/postgres-18.3" ``` diff --git a/etc/pgdump-to-s3/template.yml b/etc/pgdump-to-s3/template.yml index fadf3b1bb..2122fb4f2 100644 --- a/etc/pgdump-to-s3/template.yml +++ b/etc/pgdump-to-s3/template.yml @@ -172,7 +172,7 @@ Resources: "PGDATABASE": "${DbName}", "PGUSER": "${DbUser}", "PGPASSWORD": "${DbPassword}", - "PGDUMP_PATH": "bin/postgres-17.7", + "PGDUMP_PATH": "bin/postgres-18.3", "S3_REGION": "us-east-1", "S3_BUCKET": "${PgdumpBucket}", "ROOT": "daily/Augury",