diff --git a/README.md b/README.md index d611538..8d99238 100644 --- a/README.md +++ b/README.md @@ -174,11 +174,11 @@ 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-FindBin perl-lib # 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/v17.5/postgresql-17.5.tar.gz +tar zxf postgresql-17.5.tar.gz +cd postgresql-17.5 ./configure --with-ssl=openssl make sudo make install @@ -188,16 +188,16 @@ exit #### Download the binaries ```bash -mkdir bin/postgres-16.3 -scp ec2-user@your-ec2-server:/usr/local/pgsql/bin/pg_dump ./bin/postgres-16.3/pg_dump -scp ec2-user@your-ec2-server:/usr/local/pgsql/lib/libpq.so.5 ./bin/postgres-16.3/libpq.so.5 +mkdir bin/postgres-17.5 +scp ec2-user@your-ec2-server:/usr/local/pgsql/bin/pg_{dump,restore} ./bin/postgres-17.5/ +scp ec2-user@your-ec2-server:/usr/local/pgsql/lib/libpq.so.5 ./bin/postgres-17.5/ ``` 3. To use the new postgres binary pass PGDUMP_PATH in the event: ```json { - "PGDUMP_PATH": "bin/postgres-16.3" + "PGDUMP_PATH": "bin/postgres-17.5" } ``` diff --git a/bin/postgres-16.3/libpq.so.5 b/bin/postgres-16.3/libpq.so.5 deleted file mode 100755 index bc3721d..0000000 Binary files a/bin/postgres-16.3/libpq.so.5 and /dev/null differ diff --git a/bin/postgres-16.3/pg_dump b/bin/postgres-16.3/pg_dump deleted file mode 100755 index fba17f4..0000000 Binary files a/bin/postgres-16.3/pg_dump and /dev/null differ diff --git a/bin/postgres-17.5/libpq.so.5 b/bin/postgres-17.5/libpq.so.5 new file mode 100755 index 0000000..9193b5c Binary files /dev/null and b/bin/postgres-17.5/libpq.so.5 differ diff --git a/bin/postgres-17.5/pg_dump b/bin/postgres-17.5/pg_dump new file mode 100755 index 0000000..81a6582 Binary files /dev/null and b/bin/postgres-17.5/pg_dump differ diff --git a/bin/postgres-17.5/pg_restore b/bin/postgres-17.5/pg_restore new file mode 100755 index 0000000..35467c5 Binary files /dev/null and b/bin/postgres-17.5/pg_restore differ diff --git a/lib/config.js b/lib/config.js index 9e0f8a1..88622b4 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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-17.5'), // maximum time allowed to connect to postgres before a timeout occurs PGCONNECT_TIMEOUT: 15, USE_IAM_AUTH: false,