Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile-15
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ARG plv8_release=3.1.5
ARG pg_plan_filter_release=5081a7b5cb890876e67d8e7486b6a64c38c9a492
ARG pg_net_release=0.7.1
ARG rum_release=1.3.13
ARG pg_partman_release=5.2.4
ARG pg_hashids_release=cd0e1b31d52b394a0df64079406a14a4f7387cd6
ARG libsodium_release=1.0.18
ARG pgsodium_release=3.1.6
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-17
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ARG plv8_release=3.1.5
ARG pg_plan_filter_release=5081a7b5cb890876e67d8e7486b6a64c38c9a492
ARG pg_net_release=0.7.1
ARG rum_release=1.3.13
ARG pg_partman_release=5.2.4
ARG pg_hashids_release=cd0e1b31d52b394a0df64079406a14a4f7387cd6
ARG libsodium_release=1.0.18
ARG pgsodium_release=3.1.6
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-orioledb-17
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ARG pgsodium_release=3.1.6
ARG pg_graphql_release=1.5.11
ARG pg_stat_monitor_release=1.1.1
ARG pg_jsonschema_release=0.1.4
ARG pg_partman_release=5.2.4
ARG pg_repack_release=1.4.8
ARG vault_release=0.2.8
ARG groonga_release=12.0.8
Expand Down
2 changes: 1 addition & 1 deletion ansible/files/postgresql_config/postgresql.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ default_text_search_config = 'pg_catalog.english'
#local_preload_libraries = ''
#session_preload_libraries = ''

shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault' # (change requires restart)
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault, pg_partman_bgw' # (change requires restart)
jit_provider = 'llvmjit' # JIT library to use

# - Other Defaults -
Expand Down
2 changes: 1 addition & 1 deletion nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
) filteredSqlTests;
sortedTestList = builtins.sort (a: b: a < b) testList;
in
pkgs.runCommand "postgres-${pgpkg.version}-check-harness"
pkgs.runCommand "postgres-${pgpkg.version}-ch"
{
nativeBuildInputs = with pkgs; [
coreutils
Expand Down
2 changes: 1 addition & 1 deletion nix/docs/adding-new-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ A few things about `buildPgrxExtension_x`:
2. You may need to add tests to our test.yml gh action workflow as well.
3. You can add the package and name and version to `ansible/vars.yml` it is not necessary to add the sha256 hash here, as the package is already built and cached in our release process before these vars are ever run.
4. to check that all your files will land in the overall build correctly, you can run `nix profile install .#psql_15/bin` on your machine, and check in `~/.nix-profile/bin, ~/.nix-profile/lib, ~/.nix-profile/share/postgresql/*` and you should see your lib, .control and sql files there.
5. You can also run `nix run .#start-server 15` and in a new terminal window run `nix run .#star-client-and-migrate 15` and try to `CREATE EXTENSION <yourname>` and work with it there
5. You can also run `nix run .#start-server 15` and in a new terminal window run `nix run .#start-client -- --version15` and try to `CREATE EXTENSION <yourname>` and work with it there
6. Check that your extension works with the `pg_upgrade` process (TODO documentation forthcoming)
7. Now you are ready to PR the extension
8. From here, the release process should typically take care of the rest.
6 changes: 3 additions & 3 deletions nix/ext/pg_partman.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

stdenv.mkDerivation rec {
pname = "pg_partman";
version = "5.1.0";
version = "5.2.4";

buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "pgpartman";
repo = pname;
repo = "${pname}";
rev = "refs/tags/v${version}";
sha256 = "sha256-GrVOJ5ywZMyqyDroYDLdKkXDdIJSDGhDfveO/ZvrmYs=";
hash = "sha256-i/o+JZEXnJRO17kfdTw87aca28+I8pvuFZsPMA/kf+w=";
};

installPhase = ''
Expand Down
1 change: 1 addition & 0 deletions nix/packages/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
../ext/pg_hashids.nix
../ext/pgsodium.nix
../ext/pg_graphql.nix
../ext/pg_partman.nix
../ext/pg_stat_monitor.nix
../ext/pg_jsonschema.nix
../ext/pgvector.nix
Expand Down
111 changes: 106 additions & 5 deletions nix/tests/expected/z_15_ext_interface.out

Large diffs are not rendered by default.

115 changes: 108 additions & 7 deletions nix/tests/expected/z_17_ext_interface.out

Large diffs are not rendered by default.

115 changes: 108 additions & 7 deletions nix/tests/expected/z_orioledb-17_ext_interface.out

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nix/tests/postgresql.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ default_text_search_config = 'pg_catalog.english'

#local_preload_libraries = ''
#session_preload_libraries = ''
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault' # (change requires restart)
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault, pg_partman_bgw' # (change requires restart)
jit_provider = 'llvmjit' # JIT library to use


Expand Down
1 change: 1 addition & 0 deletions nix/tests/prime.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ create extension if not exists pg_hashids;
create extension if not exists pg_prewarm;
create extension if not exists pgmq;
create extension if not exists pg_jsonschema;
create extension if not exists pg_partman;
create extension if not exists pg_repack;
create extension if not exists pg_stat_monitor;
create extension if not exists pg_stat_statements;
Expand Down
5 changes: 5 additions & 0 deletions nix/tools/sync-exts-versions.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ for key in $keys; do
package_name="pg-safeupdate"
run_sync $varname $package_name
;;
"pg_partman_release")
varname="pg_partman_release"
package_name="pg_partman"
run_sync $varname $package_name
;;
"pgsodium_release")
varname="pgsodium_release"
package_name="pgsodium"
Expand Down