Skip to content

Commit 6336dba

Browse files
authored
Merge branch 'develop' into sam/oriole16
2 parents a4b4998 + cfbb171 commit 6336dba

File tree

12 files changed

+156
-8
lines changed

12 files changed

+156
-8
lines changed

.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
run: |
4444
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
4545
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
46+
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
47+
VERSION=${{ inputs.postgresVersion }}
48+
fi
4649
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4750
echo "major_version=$(echo $VERSION | cut -d'.' -f1)" >> "$GITHUB_OUTPUT"
4851

.github/workflows/publish-nix-pgupgrade-scripts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
run: |
5252
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
5353
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
54+
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
55+
VERSION=${{ inputs.postgresVersion }}
56+
fi
5457
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
5558
5659
- name: Create a tarball containing pg_upgrade scripts

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ default_text_search_config = 'pg_catalog.english'
688688
#local_preload_libraries = ''
689689
#session_preload_libraries = ''
690690

691-
shared_preload_libraries = 'pg_stat_statements, pg_stat_monitor, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter' # (change requires restart)
691+
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter' # (change requires restart)
692692
jit_provider = 'llvmjit' # JIT library to use
693693

694694
# - Other Defaults -

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.1.94"
1+
postgres-version = "15.1.1.95"

docker/nix/build_nix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ nix build .#psql_16/bin -o psql_16
1313
nix build .#psql_orioledb_16/bin -o psql_orioledb_16
1414
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
1515
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_16
16-
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_orioledb_16
16+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_orioledb_16

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,13 @@
485485
--subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}'
486486
chmod +x $out/bin/start-postgres-replica
487487
'';
488+
pg-restore =
489+
pkgs.runCommand "run-pg-restore" { } ''
490+
mkdir -p $out/bin
491+
substitute ${./nix/tools/run-restore.sh.in} $out/bin/pg-restore \
492+
--subst-var-by PSQL15_BINDIR '${basePackages.psql_15.bin}'
493+
chmod +x $out/bin/pg-restore
494+
'';
488495
sync-exts-versions = pkgs.runCommand "sync-exts-versions" { } ''
489496
mkdir -p $out/bin
490497
substitute ${./nix/tools/sync-exts-versions.sh.in} $out/bin/sync-exts-versions \
@@ -615,6 +622,7 @@
615622
start-replica = mkApp "start-replica" "start-postgres-replica";
616623
migration-test = mkApp "migrate-tool" "migrate-postgres";
617624
sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
625+
pg-restore = mkApp "pg-restore" "pg-restore";
618626
};
619627

620628
# 'devShells.default' lists the set of packages that are included in the

migrations/Dockerfile.dbmate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ENV PATH="/usr/lib/postgresql/%VERSION%/bin:${PATH}"
2020

2121
RUN dbmate --version
2222

23-
ENTRYPOINT ["dbmate"]
23+
ENTRYPOINT ["dbmate"]

migrations/db/migrations/20221207154255_create_pgsodium_and_vault.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ BEGIN
99
select count(*) = 1
1010
from pg_available_extensions
1111
where name = 'pgsodium'
12+
and default_version in ('3.1.6', '3.1.7', '3.1.8', '3.1.9')
1213
);
1314

1415
vault_exists = (

nix/ext/pg_net.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
stdenv.mkDerivation rec {
44
pname = "pg_net";
5-
version = "0.10.0";
5+
version = "0.11.0";
66

77
buildInputs = [ curl postgresql ];
88

99
src = fetchFromGitHub {
1010
owner = "supabase";
1111
repo = pname;
1212
rev = "refs/tags/v${version}";
13-
hash = "sha256-R9Mzw5gvV7b2R59LTOzuOc0AI99+3ncFNzijI4mySUg=";
13+
hash = "sha256-XN441jXK1q+I/LZRNwvzbSsebXHgZ8iYsslZvcPFlAs=";
1414
};
1515

1616
env.NIX_CFLAGS_COMPILE = "-Wno-error";

nix/tests/postgresql.conf.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ default_text_search_config = 'pg_catalog.english'
718718

719719
#local_preload_libraries = ''
720720
#session_preload_libraries = ''
721-
shared_preload_libraries = 'pg_stat_statements, pg_stat_monitor, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, pg_backtrace' # (change requires restart)
721+
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, pg_backtrace' # (change requires restart)
722722
jit_provider = 'llvmjit' # JIT library to use
723723

724724

0 commit comments

Comments
 (0)