2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, postgresql }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "pg_top";
|
|
|
|
version = "3.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-09-18 10:52:07 +00:00
|
|
|
url = "https://pgfoundry.org/frs/download.php/1781/pg_top-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses postgresql ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 'top' like tool for PostgreSQL";
|
2021-02-05 17:12:51 +00:00
|
|
|
longDescription = ''
|
|
|
|
pg_top allows you to:
|
2020-04-24 23:36:52 +00:00
|
|
|
* View currently running SQL statement of a process.
|
|
|
|
* View query plan of a currently running SQL statement.
|
|
|
|
* View locks held by a process.
|
|
|
|
* View user table statistics.
|
|
|
|
* View user index statistics.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "http://ptop.projects.postgresql.org/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free; # see commands.c
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "pg_top";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|