Skip to content

Commit 0e7f4d6

Browse files
authored
Drop unsupported versions (#1067)
* Drop unused travis CI configuration * Drop unsupported versions 10, 11 and 12 See https://www.postgresql.org/support/versioning/ > The PostgreSQL Global Development Group supports a major version for 5 years after its initial release
1 parent add5d47 commit 0e7f4d6

11 files changed

Lines changed: 19 additions & 101 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
PGVERSION:
21-
- 11
22-
- 12
2321
- 13
2422
- 14
2523
- 15

.travis.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Using --build-arg PGVERSION=11 we can build pg_auto_failover for any
2+
# Using --build-arg PGVERSION=14 we can build pg_auto_failover for any
33
# target version of Postgres. In the Makefile, we use that to our advantage
44
# and tag test images such as pg_auto_failover_test:pg14.
55
#

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.DEFAULT_GOAL := all
55

66
# Supported PostgreSQL versions:
7-
PGVERSIONS = 11 12 13 14 15 16
7+
PGVERSIONS = 13 14 15 16
88

99
# Default version:
1010
PGVERSION ?= $(lastword $(PGVERSIONS))
@@ -272,8 +272,6 @@ include Makefile.citus
272272
endif
273273

274274
# We use pg not PG in uppercase in the var name to ease implicit rules matching
275-
BUILD_ARGS_pg11 = --build-arg PGVERSION=11 --build-arg CITUSTAG=v9.5.10
276-
BUILD_ARGS_pg12 = --build-arg PGVERSION=12 --build-arg CITUSTAG=v10.2.9
277275
BUILD_ARGS_pg13 = --build-arg PGVERSION=13 --build-arg CITUSTAG=v10.2.9
278276
BUILD_ARGS_pg14 = --build-arg PGVERSION=14 --build-arg CITUSTAG=$(CITUSTAG)
279277
BUILD_ARGS_pg15 = --build-arg PGVERSION=15 --build-arg CITUSTAG=$(CITUSTAG)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
pg_auto_failover is an extension and service for PostgreSQL that monitors
66
and manages automated failover for a Postgres cluster. It is optimized for
7-
simplicity and correctness and supports Postgres 10 and newer.
7+
simplicity and correctness and supports Postgres 13 and newer.
88

99
pg_auto_failover supports several Postgres architectures and implements a
1010
safe automated failover for your Postgres service. It is possible to get
@@ -67,7 +67,7 @@ install by following the linked documentation and then::
6767

6868
```bash
6969
$ sudo apt-get install pg-auto-failover-cli
70-
$ sudo apt-get install postgresql-14-auto-failover
70+
$ sudo apt-get install postgresql-16-auto-failover
7171
```
7272

7373
When using debian, two packages are provided for pg_auto_failover: the

docs/azure-tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ nodes. It will help us run and observe PostgreSQL.
154154
"curl https://install.citusdata.com/community/deb.sh | sudo bash" \
155155
"sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y postgresql-common" \
156156
"echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf" \
157-
"sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y postgresql-11-auto-failover-1.4" \
157+
"sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y postgresql-16-auto-failover" \
158158
"sudo usermod -a -G postgres ha-admin" &
159159
done
160160
wait
@@ -178,7 +178,7 @@ own roles in the system.
178178
--auth trust \
179179
--ssl-self-signed \
180180
--pgdata monitor \
181-
--pgctl /usr/lib/postgresql/11/bin/pg_ctl
181+
--pgctl /usr/lib/postgresql/16/bin/pg_ctl
182182
183183
This command initializes a PostgreSQL cluster at the location pointed
184184
by the ``--pgdata`` option. When ``--pgdata`` is omitted, ``pg_autoctl``
@@ -225,7 +225,7 @@ We’ll create the primary database using the ``pg_autoctl create`` subcommand.
225225
--username ha-admin \
226226
--dbname appdb \
227227
--hostname ha-demo-a.internal.cloudapp.net \
228-
--pgctl /usr/lib/postgresql/11/bin/pg_ctl \
228+
--pgctl /usr/lib/postgresql/16/bin/pg_ctl \
229229
--monitor 'postgres://autoctl_node@ha-demo-monitor.internal.cloudapp.net/pg_auto_failover?sslmode=require'
230230
231231
Notice the user and database name in the monitor connection string -- these
@@ -274,7 +274,7 @@ Next connect to node B and do the same process. We'll do both steps at once:
274274
--username ha-admin \
275275
--dbname appdb \
276276
--hostname ha-demo-b.internal.cloudapp.net \
277-
--pgctl /usr/lib/postgresql/11/bin/pg_ctl \
277+
--pgctl /usr/lib/postgresql/16/bin/pg_ctl \
278278
--monitor 'postgres://autoctl_node@ha-demo-monitor.internal.cloudapp.net/pg_auto_failover?sslmode=require'
279279
280280
ssh -T -l ha-admin `vm_ip b` << CMD

docs/install.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ Installing pg_auto_failover
66
We provide native system packages for pg_auto_failover on most popular Linux
77
distributions.
88

9-
Use the steps below to install pg_auto_failover on PostgreSQL 11. At the
10-
current time pg_auto_failover is compatible with both PostgreSQL 10 and
11-
PostgreSQL 11.
9+
Use the steps below to install pg_auto_failover on PostgreSQL 16. At the
10+
current time pg_auto_failover is compatible with PostgreSQL 13 to 16.
1211

1312
Ubuntu or Debian
1413
----------------
@@ -21,13 +20,13 @@ Binary packages for debian and derivatives (ubuntu) are available from
2120
documentation and then::
2221

2322
$ sudo apt-get install pg-auto-failover-cli
24-
$ sudo apt-get install postgresql-14-auto-failover
23+
$ sudo apt-get install postgresql-16-auto-failover
2524

2625
__ https://wiki.postgresql.org/wiki/Apt
2726

2827
The Postgres extension named "pgautofailover" is only necessary on the
2928
monitor node. To install that extension, you can install the
30-
``postgresql-14-auto-failover`` package when using Postgres 14. It's
29+
``postgresql-16-auto-failover`` package when using Postgres 16. It's
3130
available for other Postgres versions too.
3231

3332
Avoiding the default Postgres service

src/bin/pg_autoctl/azure.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,10 +1055,10 @@ azure_build_pg_autoctl(AzureRegionResources *azRegion)
10551055
pid_t pidArray[MAX_VMS_PER_REGION] = { 0 };
10561056

10571057
char *buildCommand =
1058-
"make PG_CONFIG=/usr/lib/postgresql/11/bin/pg_config "
1058+
"make PG_CONFIG=/usr/lib/postgresql/16/bin/pg_config "
10591059
"-C pg_auto_failover -s clean all "
10601060
" && "
1061-
"sudo make PG_CONFIG=/usr/lib/postgresql/11/bin/pg_config "
1061+
"sudo make PG_CONFIG=/usr/lib/postgresql/16/bin/pg_config "
10621062
"BINDIR=/usr/local/bin -C pg_auto_failover install";
10631063

10641064
log_info("Building pg_auto_failover from sources on %d Azure VMs",
@@ -1206,7 +1206,7 @@ azure_prepare_debian_install_command(char *command, size_t size)
12061206
* azure_prepare_debian_install_postgres_command prepares the debian command to
12071207
* install our target Postgres version when building from sources.
12081208
*
1209-
* sudo apt-get build-dep -q -y postgresql-11
1209+
* sudo apt-get build-dep -q -y postgresql-16
12101210
*/
12111211
static bool
12121212
azure_prepare_debian_install_postgres_command(char *command, size_t size)
@@ -1239,7 +1239,7 @@ azure_prepare_debian_install_postgres_command(char *command, size_t size)
12391239
* git repository.
12401240
*
12411241
* sudo apt-get install -q -y \
1242-
* postgresql-server-dev-all libkrb5-dev postgresql-11 rsync
1242+
* postgresql-server-dev-all libkrb5-dev postgresql-16 rsync
12431243
*/
12441244
static bool
12451245
azure_prepare_debian_build_dep_postgres_command(char *command, size_t size)

src/bin/pg_autoctl/cli_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ keeper_cli_print_version(int argc, char **argv)
15241524
"pg_autoctl extension version %s\n",
15251525
PG_AUTOCTL_EXTENSION_VERSION);
15261526
fformat(stdout, "compiled with %s\n", PG_VERSION_STR);
1527-
fformat(stdout, "compatible with Postgres 11, 12, 13, 14, 15, and 16\n");
1527+
fformat(stdout, "compatible with Postgres 13, 14, 15, and 16\n");
15281528
}
15291529

15301530
exit(0);

tests/tablespaces/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PGVERSION=10
1+
ARG PGVERSION=14
22

33
FROM pg_auto_failover_test:pg${PGVERSION} as test
44

0 commit comments

Comments
 (0)