Skip to content

Commit 07de5cc

Browse files
authored
Merge pull request #81 from jameshy/ugprade-everything
upgrade everything
2 parents 690f0a3 + b5e4e93 commit 07de5cc

12 files changed

Lines changed: 1717 additions & 1471 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It can be configured to run periodically using CloudWatch events.
1111

1212
1. Create an AWS lambda function:
1313
- Author from scratch
14-
- Runtime: Node.js 20.x
14+
- Runtime: Node.js 24.x
1515
- Architecture: x86_64
1616
2. tab "Code" -> "Upload from" -> ".zip file":
1717
- Upload ([pgdump-aws-lambda.zip](https://github.com/jameshy/pgdump-aws-lambda/releases/latest))
@@ -174,13 +174,13 @@ NOTE: The 15 minute timeout for lambda still applies.
174174

175175
```bash
176176
# install packages required for building
177-
sudo dnf install make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel
177+
sudo dnf install make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel bison flex perl-core
178178
# build and install postgres from source
179-
wget https://ftp.postgresql.org/pub/source/v16.3/postgresql-16.3.tar.gz
180-
tar zxf postgresql-16.3.tar.gz
181-
cd postgresql-16.3
179+
wget https://ftp.postgresql.org/pub/source/v18.1/postgresql-18.1.tar.gz
180+
tar zxvf postgresql-18.1.tar.gz
181+
cd postgresql-18.1
182182
./configure --with-ssl=openssl
183-
make
183+
make -j 2
184184
sudo make install
185185
exit
186186
```

bin/postgres-16.3/libpq.so.5

-358 KB
Binary file not shown.

bin/postgres-16.3/pg_dump

-437 KB
Binary file not shown.

bin/postgres-18.1/libpq.a

354 KB
Binary file not shown.

bin/postgres-18.1/libpq.so

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libpq.so.5.18

bin/postgres-18.1/libpq.so.5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libpq.so.5.18

bin/postgres-18.1/libpq.so.5.18

401 KB
Binary file not shown.

bin/postgres-18.1/pg_dump

483 KB
Binary file not shown.

bin/postgres-18.1/pg_restore

249 KB
Binary file not shown.

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33
// default config that is overridden by the Lambda event
44
module.exports = {
55
S3_REGION: 'eu-west-1',
6-
PGDUMP_PATH: path.join(__dirname, '../bin/postgres-16.3'),
6+
PGDUMP_PATH: path.join(__dirname, '../bin/postgres-18.1'),
77
// maximum time allowed to connect to postgres before a timeout occurs
88
PGCONNECT_TIMEOUT: 15,
99
USE_IAM_AUTH: false,

0 commit comments

Comments
 (0)