added pg_top
svn path=/nixpkgs/trunk/; revision=17711
This commit is contained in:
parent
6132b946ac
commit
e7c3f330d3
28
pkgs/tools/misc/pg_top/default.nix
Normal file
28
pkgs/tools/misc/pg_top/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{stdenv, fetchurl, ncurses, postgresql}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "pg_top-3.6.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://pgfoundry.org/frs/download.php/1781/pg_top-3.6.2.tar.gz;
|
||||||
|
sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ncurses postgresql];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "pg_top is 'top' for PostgreSQL";
|
||||||
|
longDescription = ''
|
||||||
|
pg_top allows you to:
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>View currently running SQL statement of a process.</listitem>
|
||||||
|
<listitem>View query plan of a currently running SQL statement.</listitem>
|
||||||
|
<listitem>View locks held by a process.</listitem>
|
||||||
|
<listitem>View user table statistics.</listitem>
|
||||||
|
<listitem>View user index statistics.</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
'';
|
||||||
|
|
||||||
|
homepage = http://ptop.projects.postgresql.org/;
|
||||||
|
};
|
||||||
|
}
|
@ -1251,6 +1251,10 @@ let
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pg_top = import ../tools/misc/pg_top {
|
||||||
|
inherit fetchurl stdenv ncurses postgresql;
|
||||||
|
};
|
||||||
|
|
||||||
pdsh = import ../tools/networking/pdsh {
|
pdsh = import ../tools/networking/pdsh {
|
||||||
inherit fetchurl stdenv perl;
|
inherit fetchurl stdenv perl;
|
||||||
readline = if getPkgConfig "pdsh" "readline" true then readline else null;
|
readline = if getPkgConfig "pdsh" "readline" true then readline else null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user