mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
aafe0f4314
PostgreSQL extension providing approximate algorithms for distinct item counts, quantile estimation and frequent items detection.
29 lines
786 B
Nix
29 lines
786 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ lsix ]; # TODO: Who's the maintener now?
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
services.postgresql = let mypg = pkgs.postgresql_15; in {
|
|
enable = true;
|
|
package = mypg;
|
|
extraPlugins = with mypg.pkgs; [
|
|
apache_datasketches
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
master.wait_for_unit("postgresql")
|
|
master.sleep(10) # Hopefully this is long enough!!
|
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION datasketches;'")
|
|
master.succeed("sudo -u postgres psql -c 'SELECT hll_sketch_to_string(hll_sketch_build(1));'")
|
|
'';
|
|
})
|