SlideShare a Scribd company logo
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

More Related Content

PPTX
PostgreSQL Database Slides
PDF
Deep dive into PostgreSQL statistics.
PDF
Mastering PostgreSQL Administration
 
PPTX
Postgresql Database Administration Basic - Day1
PDF
Maxscale_메뉴얼
PDF
Postgresql database administration volume 1
PDF
PostgreSQL Deep Internal
PDF
PostgreSQL replication
PostgreSQL Database Slides
Deep dive into PostgreSQL statistics.
Mastering PostgreSQL Administration
 
Postgresql Database Administration Basic - Day1
Maxscale_메뉴얼
Postgresql database administration volume 1
PostgreSQL Deep Internal
PostgreSQL replication

What's hot (20)

PDF
Linux tuning to improve PostgreSQL performance
DOCX
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
PDF
PostgreSQL WAL for DBAs
PDF
Backup and-recovery2
PPT
Using galera replication to create geo distributed clusters on the wan
PPTX
MySQL_MariaDB-성능개선-202201.pptx
ODP
OpenGurukul : Database : PostgreSQL
PDF
[pgday.Seoul 2022] PostgreSQL구조 - 윤성재
PDF
High Availability PostgreSQL with Zalando Patroni
PDF
MariaDB MaxScale monitor 매뉴얼
PDF
Troubleshooting PostgreSQL Streaming Replication
PDF
PostgreSQL Performance Tuning
PDF
PostgreSQL and RAM usage
PDF
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PDF
Webinar: PostgreSQL continuous backup and PITR with Barman
PDF
Get to know PostgreSQL!
PDF
Introduction to Cassandra
PDF
MySQL Advanced Administrator 2021 - 네오클로바
PDF
Optimizing MariaDB for maximum performance
PPTX
MaxScale이해와활용-2023.11
Linux tuning to improve PostgreSQL performance
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
PostgreSQL WAL for DBAs
Backup and-recovery2
Using galera replication to create geo distributed clusters on the wan
MySQL_MariaDB-성능개선-202201.pptx
OpenGurukul : Database : PostgreSQL
[pgday.Seoul 2022] PostgreSQL구조 - 윤성재
High Availability PostgreSQL with Zalando Patroni
MariaDB MaxScale monitor 매뉴얼
Troubleshooting PostgreSQL Streaming Replication
PostgreSQL Performance Tuning
PostgreSQL and RAM usage
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
Webinar: PostgreSQL continuous backup and PITR with Barman
Get to know PostgreSQL!
Introduction to Cassandra
MySQL Advanced Administrator 2021 - 네오클로바
Optimizing MariaDB for maximum performance
MaxScale이해와활용-2023.11
Ad

Viewers also liked (20)

PDF
Best Practices for Becoming an Exceptional Postgres DBA
 
PDF
5 Steps to PostgreSQL Performance
PDF
Postgres in Production - Best Practices 2014
 
PPTX
The Magic of Tuning in PostgreSQL
PDF
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
PDF
Autovacuum, explained for engineers, new improved version PGConf.eu 2015 Vienna
PDF
PostgreSQL 9.6 Performance-Scalability Improvements
PDF
Streaming replication in practice
PDF
Linux tuning for PostgreSQL at Secon 2015
PDF
PostgreSQL performance improvements in 9.5 and 9.6
PDF
PostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
PDF
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
PDF
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PDF
GitLab PostgresMortem: Lessons Learned
PDF
pg_top is 'top' for PostgreSQL
PDF
PostgreSQL, performance for queries with grouping
PDF
Which Postgres is Right for You? - Part 2
 
PDF
Expanding with EDB Postgres Advanced Server 9.5
 
Best Practices for Becoming an Exceptional Postgres DBA
 
5 Steps to PostgreSQL Performance
Postgres in Production - Best Practices 2014
 
The Magic of Tuning in PostgreSQL
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
Autovacuum, explained for engineers, new improved version PGConf.eu 2015 Vienna
PostgreSQL 9.6 Performance-Scalability Improvements
Streaming replication in practice
Linux tuning for PostgreSQL at Secon 2015
PostgreSQL performance improvements in 9.5 and 9.6
PostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
PostgreSQL Replication in 10 Minutes - SCALE
GitLab PostgresMortem: Lessons Learned
pg_top is 'top' for PostgreSQL
PostgreSQL, performance for queries with grouping
Which Postgres is Right for You? - Part 2
 
Expanding with EDB Postgres Advanced Server 9.5
 
Ad

Similar to PostgreSQL Administration for System Administrators (20)

PDF
Postgres 12 Cluster Database operations.
PPTX
ConfigurationFererererereeerereeiles.pptx
PPTX
Postgre sql best_practices
PPTX
TechEvent PostgreSQL Best Practices
ODP
Postgre sql unleashed
PPTX
Postgre sql best_practices
PDF
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
PDF
Mastering PostgreSQL Administration
PDF
Everything You Wanted to Know About Databases (Keith).pdf
ODP
Pro PostgreSQL, OSCon 2008
PDF
Whats wrong with postgres | PGConf EU 2019 | Craig Kerstiens
PDF
Oracle to Postgres Migration - part 2
PPTX
Getting started with postgresql
PDF
0292-introduction-postgresql.pdf
PDF
The Accidental DBA
PDF
Bn 1016 demo postgre sql-online-training
PDF
Perl Programming - 04 Programming Database
PDF
Introduction to PostgreSQL for System Administrators
PDF
Postgresql Up And Running Regina Obe Leo Hsu
PDF
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
Postgres 12 Cluster Database operations.
ConfigurationFererererereeerereeiles.pptx
Postgre sql best_practices
TechEvent PostgreSQL Best Practices
Postgre sql unleashed
Postgre sql best_practices
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
Mastering PostgreSQL Administration
Everything You Wanted to Know About Databases (Keith).pdf
Pro PostgreSQL, OSCon 2008
Whats wrong with postgres | PGConf EU 2019 | Craig Kerstiens
Oracle to Postgres Migration - part 2
Getting started with postgresql
0292-introduction-postgresql.pdf
The Accidental DBA
Bn 1016 demo postgre sql-online-training
Perl Programming - 04 Programming Database
Introduction to PostgreSQL for System Administrators
Postgresql Up And Running Regina Obe Leo Hsu
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open

More from Command Prompt., Inc (20)

PDF
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
PDF
Temporal Data
PDF
Replication using PostgreSQL Replicator
PDF
Go replicator
PDF
ODP
Python utilities for data presentation
PDF
PostgreSQL, Extensible to the Nth Degree: Functions, Languages, Types, Rules,...
PDF
pg_proctab: Accessing System Stats in PostgreSQL
PDF
Not Just UNIQUE: Generalized Index Constraints
PDF
Implementing the Future of PostgreSQL Clustering with Tungsten
PDF
Elephant Roads: a tour of Postgres forks
PDF
configuring a warm standby, the easy way
ODP
Basic Query Tuning Primer
PDF
A Practical Multi-Tenant Cluster
PPT
Normalization: A Workshop for Everybody Pt. 2
PPT
Normalization: A Workshop for Everybody Pt. 1
PDF
Integrating PostGIS in Web Applications
PDF
PostgreSQL High Availability via SLONY and PG POOL II
ODP
The PostgreSQL Query Planner
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Temporal Data
Replication using PostgreSQL Replicator
Go replicator
Python utilities for data presentation
PostgreSQL, Extensible to the Nth Degree: Functions, Languages, Types, Rules,...
pg_proctab: Accessing System Stats in PostgreSQL
Not Just UNIQUE: Generalized Index Constraints
Implementing the Future of PostgreSQL Clustering with Tungsten
Elephant Roads: a tour of Postgres forks
configuring a warm standby, the easy way
Basic Query Tuning Primer
A Practical Multi-Tenant Cluster
Normalization: A Workshop for Everybody Pt. 2
Normalization: A Workshop for Everybody Pt. 1
Integrating PostGIS in Web Applications
PostgreSQL High Availability via SLONY and PG POOL II
The PostgreSQL Query Planner

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