pg_repack: init at 1.3.4
This commit is contained in:
parent
4aafe684d2
commit
6d05af5f4c
35
pkgs/servers/sql/postgresql/pg_repack/default.nix
Normal file
35
pkgs/servers/sql/postgresql/pg_repack/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pg_repack-${version}";
|
||||
version = "1.3.4";
|
||||
|
||||
buildInputs = [ postgresql openssl zlib readline ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "reorg";
|
||||
repo = "pg_repack";
|
||||
rev = "ver_${version}";
|
||||
sha256 = "1hig4x8iycchlp42q8565jzi6hkj8gpbhl9kpn73jvk7afl7z0c8";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -D bin/pg_repack -t $out/bin/
|
||||
install -D lib/pg_repack.so -t $out/lib/
|
||||
install -D lib/{pg_repack--${version}.sql,pg_repack.control} -t $out/share/extension
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Reorganize tables in PostgreSQL databases with minimal locks";
|
||||
longDescription = ''
|
||||
pg_repack is a PostgreSQL extension which lets you remove bloat from tables and indexes, and optionally restore
|
||||
the physical order of clustered indexes. Unlike CLUSTER and VACUUM FULL it works online, without holding an
|
||||
exclusive lock on the processed tables during processing. pg_repack is efficient to boot,
|
||||
with performance comparable to using CLUSTER directly.
|
||||
'';
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ danbst ];
|
||||
inherit (postgresql.meta) platforms;
|
||||
inherit (src.meta) homepage;
|
||||
};
|
||||
}
|
@ -9127,6 +9127,8 @@ in
|
||||
|
||||
pdf2xml = callPackage ../development/libraries/pdf2xml {} ;
|
||||
|
||||
pg_repack = callPackage ../servers/sql/postgresql/pg_repack {};
|
||||
|
||||
phonon = callPackage ../development/libraries/phonon {};
|
||||
|
||||
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user