Heads up: upcoming changes to the PostgreSQL infrastructure and NixOS module

As @thoughtpolice is short on time, I took this into my hands. I plan to change PG to pg11 by Feb 25 (before feature freeze).

So far, this was done:

This is awaiting merge

After all this is merged, PG11 can be set as default. I don’t do any deprecations for NixOS, will only update docs and examples. The example above will look like

  services.postgresql = {
    enable = true;
    dataDir = "/data/pgsql";

    package = pkgs.postgresql_11;
    # this will be supported as well
    # package = pkgs.postgresql_11.withPackages (ps: [ ps.pg_repack ]); 
    extraPlugins = with pkgs.postgresql_11.pkgs;
      [ cstore_fdw
        pg_cron
        pg_hll
        pg_jobmon
        pg_repack
        pg_topn
        pgtap
        plv8
        postgis
        timescaledb
      ];

    extraConfig = "shared_preload_libraries = 'timescaledb'";
  };
2 Likes