|
Profiling PostgreSQL databasePosted on January 2, 2010 by Mikko OhtamaaFiled Under linux, postgresql, ubuntu This blog post will have some short notes about monitoring and profiling PostgreSQL databases. pgtoppgtop provides UNIX top command like user interface for PostgreSQL. pgtop command is available as Perl CPAN module. How to install Perl CPAN modules as non-root user on Ubuntu (note: when it prompts to run sudo, answer no). To install pgtop install following CPAN modules first: Term::ANSIColor, Term::ReadKey, DBD::Pg perl -MCPAN -Mlocal::lib -e 'CPAN::install(DBD::Pg)' perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::ReadKey)' perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::ANSIColor)' Running pgtop: perl pgtop -d databasename -u yourdbuser -p yourdbuserpassword pgfouinepgfouine is a log analyzer for PostgreSQL. |
