Skip to content

Commit 8c80770

Browse files
authored
Bump pg dump (#881)
* Bump version * Exclude ducklake
1 parent 6921907 commit 8c80770

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

etc/pgdump-to-s3/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ From within this directory:
77
git clone https://github.com/jameshy/pgdump-aws-lambda.git lambda-src/pgdump-aws-lambda
88
```
99

10-
Then copy the `postgres-17.5/` folder into `lambda-src/pgdump-aws-lambda/bin/`
10+
Then copy the `postgres-17.7/` folder into `lambda-src/pgdump-aws-lambda/bin/`
1111

1212
Deploy:
1313
```bash
@@ -16,29 +16,29 @@ sam build && sam deploy --resolve-s3 --config-env=staging
1616

1717
## Building Custom PostgreSQL Binaries (Optional)
1818

19-
This repository includes pre-built PostgreSQL 17.5 binaries for x86_64 architecture. If you need to build different versions or architectures:
19+
This repository includes pre-built PostgreSQL 17.7 binaries for x86_64 architecture. If you need to build different versions or architectures:
2020

2121
### Using Docker (Recommended)
2222

2323
```bash
24-
# Build PostgreSQL 17.5 binaries for x86_64 (Lambda compatible)
24+
# Build PostgreSQL 17.7 binaries for x86_64 (Lambda compatible)
2525
docker run -it --rm --platform linux/amd64 -v $(pwd):/workspace amazonlinux:2023 bash
2626

2727
# Inside the container:
2828
dnf install -y make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel wget tar gzip bison flex perl perl-FindBin
2929

3030
# Build PostgreSQL
31-
wget https://ftp.postgresql.org/pub/source/v17.5/postgresql-17.5.tar.gz
32-
tar zxf postgresql-17.5.tar.gz
33-
cd postgresql-17.5
31+
wget https://ftp.postgresql.org/pub/source/v17.7/postgresql-17.7.tar.gz
32+
tar zxf postgresql-17.7.tar.gz
33+
cd postgresql-17.7
3434
./configure --with-ssl=openssl
3535
make
3636
make install DESTDIR=/workspace/postgres-build
3737

3838
# Copy binaries to project
39-
mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5
40-
cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5/
41-
cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.5/
39+
mkdir -p /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7
40+
cp /workspace/postgres-build/usr/local/pgsql/bin/pg_dump /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7/
41+
cp /workspace/postgres-build/usr/local/pgsql/lib/libpq.so.5 /workspace/lambda-src/pgdump-aws-lambda/bin/postgres-17.7/
4242
```
4343

4444
### Using EC2 (Alternative)
@@ -56,5 +56,5 @@ After building custom binaries, update your `template.yml` to reference the new
5656
In the `AuguryCron` target Input, add or update the `PGDUMP_PATH`:
5757

5858
```yaml
59-
"PGDUMP_PATH": "bin/postgres-17.5"
59+
"PGDUMP_PATH": "bin/postgres-17.7"
6060
```
-367 KB
Binary file not shown.
-469 KB
Binary file not shown.
371 KB
Binary file not shown.
466 KB
Binary file not shown.

etc/pgdump-to-s3/template.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Resources:
172172
"PGDATABASE": "${DbName}",
173173
"PGUSER": "${DbUser}",
174174
"PGPASSWORD": "${DbPassword}",
175-
"PGDUMP_PATH": "bin/postgres-17.5",
175+
"PGDUMP_PATH": "bin/postgres-17.7",
176176
"S3_REGION": "us-east-1",
177177
"S3_BUCKET": "${PgdumpBucket}",
178178
"ROOT": "daily/Augury",
@@ -182,7 +182,8 @@ Resources:
182182
"--exclude-table-data=delayed_jobs",
183183
"--exclude-table-data=forecast*",
184184
"--exclude-table-data=inventory_log*",
185-
"--exclude-table-data=sessions"
185+
"--exclude-table-data=sessions",
186+
"--exclude-table-data=ducklake_*"
186187
]
187188
}
188189
AuguryCronInvokePermission:

0 commit comments

Comments
 (0)