Postgres Administration for Sysadmins Spencer Christensen Backcountry.com PostgreSQL Conference East, Philadelphia March 26, 2010
PostgreSQL How do you pronounce “PostgreSQL”?
The Q and L are silent
How do you pronounce Thule? “Yakima”
Audience Linux/Unix system administrator
Familiar with databases
Want to understand Postgres better
What we'll cover Management
Monitoring
What we'll cover Management Creating a cluster
Highlights of postgresql.conf
Logging options, review of log output
pg_hba.conf
Starting, stopping, restarts
Connecting with psql
What we'll cover Monitoring top
ps
du
pgtop
pg_top
check_postgres.pl
Pgfouine
Management Install by rpm/deb/source
Multiple installs
Multiple instances (different ports, different ip addresses, etc)
Creating a cluster Initdb -D /path/to/data/dir [options] -U postgres [schristensen@small_db ~]$ initdb -U postgres -D cluster1/data The files belonging to this database system will be owned by user "schristensen". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english".
Postgresql.conf Located at $PGDATA/postgresql.conf
Helpful comments

PostgreSQL Administration for System Administrators

Editor's Notes

  • #3 History of Postgres: Developed at UC Berkely, called Ingres Academic project Business Ingres Corp formed Forks: Informix, Sybase Then creator decided on different implimentation: Postgres Postgres95 (1994-1995) SQL became popular/standard PostgreSQL (1996-now)
  • #22 Top line output for postgres: User, database, host connected from, PID, command type