From a0cb119e356eb183d618ef536b54a17333e60790 Mon Sep 17 00:00:00 2001 From: Stefan Fercot Date: Mon, 24 Jul 2023 09:04:08 +0200 Subject: [PATCH 1/5] add postgresql.bin_name.postgres setting --- .../supported-open-source/patroni/debian11_quick_start.mdx | 6 +++++- .../supported-open-source/patroni/rhel8_quick_start.mdx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx index 66d8d36739b..3df7660a5ec 100644 --- a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx @@ -27,6 +27,7 @@ export PGUSER=enterprisedb export PGGROUP=enterprisedb export PGDATA="/var/lib/edb-as/15/main" export PGBIN="/usr/lib/edb-as/15/bin" +export PGBINNAME="edb-postgres" export PGSOCKET="/var/run/edb-as" ``` @@ -38,6 +39,7 @@ export PGUSER=postgres export PGGROUP=postgres export PGDATA="/var/lib/edb-pge/15/data" export PGBIN="/usr/lib/edb-pge/15/bin" +export PGBINNAME="postgres" export PGSOCKET="/var/run/edb-pge" ``` @@ -134,6 +136,8 @@ postgresql: connect_address: "$MY_IP:$PGPORT" data_dir: $PGDATA bin_dir: $PGBIN + bin_name: + postgres: $PGBINNAME pgpass: /tmp/pgpass0 authentication: replication: @@ -167,7 +171,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Before Patroni [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/lib/edb-as/15/bin/edb-postgres /usr/lib/edb-as/15/bin/postgres diff --git a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx index f52c2058f43..c8dbb6e403b 100644 --- a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx @@ -27,6 +27,7 @@ export PGUSER=enterprisedb export PGGROUP=enterprisedb export PGDATA="/var/lib/edb/as15/data" export PGBIN="/usr/edb/as15/bin" +export PGBINNAME="edb-postgres" export PGSOCKET="/var/run/edb/as15" ``` @@ -38,6 +39,7 @@ export PGUSER=postgres export PGGROUP=postgres export PGDATA="/var/lib/edb-pge/15/data" export PGBIN="/usr/edb/pge15/bin" +export PGBINNAME="postgres" export PGSOCKET="/var/run/edb-pge" ``` @@ -136,6 +138,8 @@ postgresql: connect_address: "$MY_IP:$PGPORT" data_dir: $PGDATA bin_dir: $PGBIN + bin_name: + postgres: $PGBINNAME pgpass: /tmp/pgpass0 authentication: replication: @@ -169,7 +173,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Before Patroni [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/edb/as15/bin/edb-postgres /usr/edb/as15/bin/postgres From cb6d909ecb7307dadb0dfbd6f717733478917e98 Mon Sep 17 00:00:00 2001 From: Stefan Fercot Date: Tue, 25 Jul 2023 15:19:43 +0200 Subject: [PATCH 2/5] Update debian11_quick_start Co-authored-by: Israel --- .../supported-open-source/patroni/debian11_quick_start.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx index 3df7660a5ec..c794c3551e2 100644 --- a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx @@ -171,7 +171,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Before Patroni [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As `postgresql.bin_name` setting was introduced in [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), if you are running Patroni older than that, then remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/lib/edb-as/15/bin/edb-postgres /usr/lib/edb-as/15/bin/postgres From 84cb82dba11566bd1089093f802c87e3abda1cbc Mon Sep 17 00:00:00 2001 From: Stefan Fercot Date: Tue, 25 Jul 2023 15:19:57 +0200 Subject: [PATCH 3/5] Update rhel8_quick_start Co-authored-by: Israel --- .../supported-open-source/patroni/rhel8_quick_start.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx index c8dbb6e403b..517adae2642 100644 --- a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx @@ -173,7 +173,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. Before Patroni [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As `postgresql.bin_name` setting was introduced in [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), if you are running Patroni older than that, then remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/edb/as15/bin/edb-postgres /usr/edb/as15/bin/postgres From c96a8dd4479b8dbf05de54805f4dc2caf108030f Mon Sep 17 00:00:00 2001 From: Stefan Fercot Date: Tue, 25 Jul 2023 15:23:46 +0200 Subject: [PATCH 4/5] small rephrase --- .../supported-open-source/patroni/debian11_quick_start.mdx | 2 +- .../supported-open-source/patroni/rhel8_quick_start.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx index c794c3551e2..a3a864c73e3 100644 --- a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx @@ -171,7 +171,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As `postgresql.bin_name` setting was introduced in [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), if you are running Patroni older than that, then remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As the `postgresql.bin_name` setting was introduced in the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove it from the configuration if you are running an older version and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/lib/edb-as/15/bin/edb-postgres /usr/lib/edb-as/15/bin/postgres diff --git a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx index 517adae2642..259e7fe3a7f 100644 --- a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx @@ -173,7 +173,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As `postgresql.bin_name` setting was introduced in [version `3.0.3`](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), if you are running Patroni older than that, then remove the `bin_name` setting from the configuration and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As the `postgresql.bin_name` setting was introduced in the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove it from the configuration if you are running an older version and create a symbolic link to let Patroni find that binary: ```bash sudo ln -s /usr/edb/as15/bin/edb-postgres /usr/edb/as15/bin/postgres From f0c80c8e5d56c820e6f6833a0ab17df7114fc397 Mon Sep 17 00:00:00 2001 From: Stefan Fercot Date: Tue, 25 Jul 2023 19:02:26 +0200 Subject: [PATCH 5/5] rephrase --- .../supported-open-source/patroni/debian11_quick_start.mdx | 2 +- .../supported-open-source/patroni/rhel8_quick_start.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx index a3a864c73e3..7cceffdee02 100644 --- a/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/debian11_quick_start.mdx @@ -171,7 +171,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As the `postgresql.bin_name` setting was introduced in the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove it from the configuration if you are running an older version and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. The `postgresql.bin_name` setting does not exist in Patroni prior to the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303) and will be silently ignored by older versions. For these versions, create an appropriately named symbolic link that points to the relevant binary: ```bash sudo ln -s /usr/lib/edb-as/15/bin/edb-postgres /usr/lib/edb-as/15/bin/postgres diff --git a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx index 259e7fe3a7f..e44bf32bfcd 100644 --- a/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx +++ b/advocacy_docs/supported-open-source/patroni/rhel8_quick_start.mdx @@ -173,7 +173,7 @@ EOF `$MY_IP` and `$MY_NAME` are specific to the local host. Otherwise, the `patroni.yml` configuration is the same on all Patroni nodes. -Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. As the `postgresql.bin_name` setting was introduced in the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303), remove it from the configuration if you are running an older version and create a symbolic link to let Patroni find that binary: +Patroni expects to find the `postgres` binary in the `bin_dir` location, while the EDB Postgres Advanced Server binary is called `edb-postgres`. The `postgresql.bin_name` setting does not exist in Patroni prior to the [`3.0.3` release](https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-303) and will be silently ignored by older versions. For these versions, create an appropriately named symbolic link that points to the relevant binary: ```bash sudo ln -s /usr/edb/as15/bin/edb-postgres /usr/edb/as15/bin/postgres