Skip to content

Commit e2dbe63

Browse files
committed
chore: bump release to test
1 parent 373e43a commit e2dbe63

File tree

12 files changed

+43
-20
lines changed

12 files changed

+43
-20
lines changed

ansible/vars.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,19 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
<<<<<<< HEAD
13-
postgresorioledb-17: "17.0.1.106-orioledb"
14-
postgres17: "17.4.1.056"
15-
postgres15: "15.8.1.113"
16-
=======
17-
postgresorioledb-17: "17.0.1.088-orioledb"
18-
postgres17: "17.4.1.038"
19-
postgres15: "15.8.1.094"
20-
postgres14: "14.18.1.001-test-3"
12+
postgresorioledb-17: "17.0.1.107-orioledb-rc1"
13+
postgres17: "17.4.1.057-rc1"
14+
postgres15: "15.8.1.114-rc1"
15+
postgres14: "14.18.1.001-rc1" #legacy for internal maintenance only.
16+
2117

2218
# Note, postgres14 is not built on every release, but is available in the nix cache.
2319
# postgres14 is included here to support upgrading from postgres14 to newer versions.
2420
# an image can be created with a special workflow that builds postgres14 image.
2521
# Supabase will not create and release postgres14 images other than as a utility for internal use.
26-
>>>>>>> 316bfef5 (chore: version bump for test)
22+
# Supase strongly recommends using postgres17 or newer for self-hosted Supabase/postgres.
23+
# Supabase offers no support of any kind for postgres14.
24+
2725

2826
# Non Postgres Extensions
2927
pgbouncer_release: "1.19.0"

nix/config.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ in
4141
defaults = { };
4242
supportedPostgresVersions = {
4343
postgres = {
44+
"14" = {
45+
version = "14.18";
46+
hash = "sha256-g6sp1r/D3Fiy7TxmQRT9++tqBFDEuNf6aa7pHjyhT44=";
47+
};
4448
"15" = {
4549
version = "15.8";
4650
hash = "sha256-RANRX5pp7rPv68mPMLjGlhIr/fiV6Ss7I/W452nty2o=";

nix/ext/pg_stat_monitor.nix

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,31 @@
55
postgresql,
66
}:
77

8+
let
9+
source =
10+
if lib.versionAtLeast postgresql.version "15" then
11+
{
12+
version = "2.1.0";
13+
hash = "sha256-STJVvvrLVLe1JevNu6u6EftzAWv+X+J8lu66su7Or2s=";
14+
}
15+
else
16+
{
17+
version = "1.1.1";
18+
hash = "sha256-S4N4Xnbkz57ue6f/eGjuRi64xT0NXjpMJiNNZnbbvbU=";
19+
};
20+
in
21+
822
stdenv.mkDerivation rec {
923
pname = "pg_stat_monitor";
10-
version = "2.1.0";
24+
inherit (source) version;
1125

1226
buildInputs = [ postgresql ];
1327

1428
src = fetchFromGitHub {
1529
owner = "percona";
1630
repo = pname;
1731
rev = "refs/tags/${version}";
18-
hash = "sha256-STJVvvrLVLe1JevNu6u6EftzAWv+X+J8lu66su7Or2s=";
32+
hash = source.hash;
1933
};
2034

2135
makeFlags = [ "USE_PGXS=1" ];
@@ -33,6 +47,5 @@ stdenv.mkDerivation rec {
3347
homepage = "https://github.com/percona/${pname}";
3448
platforms = postgresql.meta.platforms;
3549
license = licenses.postgresql;
36-
broken = lib.versionOlder postgresql.version "15";
3750
};
3851
}

nix/ext/pgaudit.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ let
2222
version = "1.7.0";
2323
hash = "sha256-8pShPr4HJaJQPjW1iPJIpj3CutTx8Tgr+rOqoXtgCcw=";
2424
};
25+
"14" = {
26+
version = "1.6.3";
27+
hash = "sha256-KgLidJHjUK9BTp6ffmGUj1chcwIe6IzlcadRpGCfNdM=";
28+
};
2529
}
2630
.${lib.versions.major postgresql.version}
2731
or (throw "Source for pgaudit is not available for ${postgresql.version}");

nix/ext/versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"wrappers": {
33
"0.5.3": {
44
"postgresql": [
5+
"14",
56
"15",
67
"17",
78
"orioledb-17"

nix/overlays/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# explicit is better.
88

99
inherit (self.packages.${final.system})
10+
postgresql_14
1011
postgresql_15
1112
postgresql_17
1213
postgresql_orioledb-17

nix/packages/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
pkgs.callPackage ../ext/pg_regress.nix { postgresql = postgresqlPackage; };
2121
pgsqlSuperuser = "supabase_admin";
2222
pkgs-lib = pkgs.callPackage ./lib.nix {
23+
psql_legacy-14 = self'.packages."psql_legacy-14/bin";
2324
psql_15 = self'.packages."psql_15/bin";
2425
psql_17 = self'.packages."psql_17/bin";
2526
psql_orioledb-17 = self'.packages."psql_orioledb-17/bin";
@@ -43,6 +44,7 @@
4344
run-testinfra = pkgs.callPackage ./run-testinfra.nix { };
4445
show-commands = pkgs.callPackage ./show-commands.nix { };
4546
start-client = pkgs.callPackage ./start-client.nix {
47+
psql_legacy-14 = self'.packages."psql_legacy-14/bin";
4648
psql_15 = self'.packages."psql_15/bin";
4749
psql_17 = self'.packages."psql_17/bin";
4850
psql_orioledb-17 = self'.packages."psql_orioledb-17/bin";

nix/packages/lib.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
psql_17,
33
psql_15,
4+
psql_legacy-14,
45
psql_orioledb-17,
56
defaults,
67
supabase-groonga,
@@ -76,6 +77,7 @@
7677
SHELL_PATH = "${pkgs.bash}/bin/bash";
7778
PGSQL_DEFAULT_PORT = "${defaults.port}";
7879
PGSQL_SUPERUSER = "${defaults.superuser}";
80+
PSQL14_BINDIR = "${psql_legacy-14}";
7981
PSQL15_BINDIR = "${psql_15}";
8082
PSQL17_BINDIR = "${psql_17}";
8183
PSQL_CONF_FILE = "${paths.pgconfigFile}";

nix/packages/postgres.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
recurseForDerivations = true;
166166
};
167167
basePackages = {
168+
psql_legacy-14 = makePostgres "14";
168169
psql_15 = makePostgres "15";
169170
psql_17 = makePostgres "17";
170171
psql_orioledb-17 = makePostgres "orioledb-17";

nix/packages/start-client.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
runCommand,
3+
psql_legacy-14,
34
psql_15,
45
psql_17,
56
psql_orioledb-17,
@@ -16,6 +17,7 @@ runCommand "start-postgres-client" { } ''
1617
substitute ${../tools/run-client.sh.in} $out/bin/start-postgres-client \
1718
--subst-var-by 'PGSQL_DEFAULT_PORT' '${defaults.port}' \
1819
--subst-var-by 'PGSQL_SUPERUSER' '${defaults.superuser}' \
20+
--subst-var-by 'PSQL14_BINDIR' '${psql_legacy-14}' \
1921
--subst-var-by 'PSQL15_BINDIR' '${psql_15}' \
2022
--subst-var-by 'PSQL17_BINDIR' '${psql_17}' \
2123
--subst-var-by 'PSQLORIOLEDB17_BINDIR' '${psql_orioledb-17}' \

0 commit comments

Comments
 (0)