Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It can be configured to run periodically using CloudWatch events.

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

```bash
# install packages required for building
sudo dnf install make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel
sudo dnf install make automake gcc gcc-c++ readline-devel zlib-devel openssl-devel libicu-devel bison flex perl-core
# build and install postgres from source
wget https://ftp.postgresql.org/pub/source/v16.3/postgresql-16.3.tar.gz
tar zxf postgresql-16.3.tar.gz
cd postgresql-16.3
wget https://ftp.postgresql.org/pub/source/v18.1/postgresql-18.1.tar.gz
tar zxvf postgresql-18.1.tar.gz
cd postgresql-18.1
./configure --with-ssl=openssl
make
make -j 2
sudo make install
exit
```
Expand Down
Binary file removed bin/postgres-16.3/libpq.so.5
Binary file not shown.
Binary file removed bin/postgres-16.3/pg_dump
Binary file not shown.
Binary file added bin/postgres-18.1/libpq.a
Binary file not shown.
1 change: 1 addition & 0 deletions bin/postgres-18.1/libpq.so
1 change: 1 addition & 0 deletions bin/postgres-18.1/libpq.so.5
Binary file added bin/postgres-18.1/libpq.so.5.18
Binary file not shown.
Binary file added bin/postgres-18.1/pg_dump
Binary file not shown.
Binary file added bin/postgres-18.1/pg_restore
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
// default config that is overridden by the Lambda event
module.exports = {
S3_REGION: 'eu-west-1',
PGDUMP_PATH: path.join(__dirname, '../bin/postgres-16.3'),
PGDUMP_PATH: path.join(__dirname, '../bin/postgres-18.1'),
// maximum time allowed to connect to postgres before a timeout occurs
PGCONNECT_TIMEOUT: 15,
USE_IAM_AUTH: false,
Expand Down
Loading
Loading