Pingu
Computer MySQL PostgreSQL Books Publications
Spielereien Kanu Business TopoDB POI Klettersteigen History TransPool Thermal Baden Brokenstuben Goldwaschen
Blog Contact
Shinguz
Google
/ch/open

PostgreSQL for MySQL Admins

/ home / computer / postgresql / .

ToC PostgreSQL for MySQL administrators


PostgreSQL Operations

  1. Installtion of PostgreSQL

    • Which O/S?
    • Which (Linux) distribution?
    • Branches and Forks (Licensen BSD)
    • Which version to use?
    • Installation methods?
  2. Configuration of PostgreSQL

    • Configuration
    • PostgreSQL Architecture
    • Cluster / Database / Schema
  3. PostgreSQL Client Utilities

    • CLI
    • GUI
  4. Backup, Restore and Point-in-Time-Recovery (PiTR)

    • Logical Backup
    • Physical Backup
    • Backup methods
      • File system copy
      • Dump
      • Snapshots
      • PostgreSQL physical backup
    • Point-in-Time-Recovery
      • The Write-Ahead-Log (WAL)
      • Managing the WAL
      • Doing a PiTR
    • Testing your restore!
  5. Further operational tasks

    • User management
    • Securing PostgreSQL
    • Encryption
      • none in Vanilla?
    • Upgrade
    • Maintenance jobs
      • Vacuum / Optimize
      • Analyze
      • Table check and repair
    • Log Files
      • Error Log

High Availability (HA) and Architecture

  1. PostgreSQL Architecture

  2. Reasons for HA

    • Availability / failover
    • Reporting replica
    • Backup replica?
    • Read scale-out?
    • Delayed replica?
    • Upgrade path
  3. Logical Replication

    • Preparation
    • Set-up
    • Operations
    • Monitoring
    • Failover
    • Advanced topics
  4. Physical Replication

    • Preparation
    • Set-up
    • Operations
    • Monitoring
    • Failover
    • Advanced topics
  5. Active/passive failover Cluster

    • With SAN
    • With DRBD
  6. Load balancing / Proxying

  7. Cluster management software

    • Patroni (leader election via etcd/Consul/Zookeeper)
    • repmgr (basic failover management)
    • pg_auto_failover (simplified two-node setups)
    • Pgpool-II (basic HA + connection pooling)
  8. Other HA / Cluster solutions


Performance Tuning

  1. Performance definition

    • latency
    • throughput
  2. Monitoring

    • O/S (CPU, RAM, I/O, Network)
    • PostgreSQL (Processlist, Performance metrics)
  3. Tuning measures

    • RAM, I/O, CPU, NW
    • O/S
    • PostgreSQL configuration parameters
      • Connection handling
      • Caches (shared_buffer, private cache)
      • Most important tuning parameters
    • Transaction handling
    • Temporary tables
    • Stored Procedures
    • Schema tuning
      • Data models / normalization
      • Data types
      • Indexing
      • Different index types - no Index Clustered Table (reorganize) - find unused indexes
    • Query tuning
    • Profiling
    • Performance views
    • Monitoring

Notes

See also: