Administration

Standard Operating Procedures (SOP) for database administration tasks

How to maintain existing PostgreSQL clusters with Pigsty?

This section provides standard operating procedures (SOP) for common PostgreSQL administration tasks:

  • SOP: Standard operating procedures for creating/removing clusters and instances, backup & restore, rolling upgrades, etc.
  • Failure: Common failure troubleshooting strategies and handling methods, such as disk exhaustion, connection exhaustion, XID wraparound, etc.
  • Drop: Emergency procedures for handling accidental data deletion, table drops, and database drops
  • Maintain: Maintenance tasks including regular inspections, post-failover cleanup, bloat management, VACUUM FREEZE, etc.
  • Tuning: Automatic optimization strategies and adjustment methods for memory, CPU, storage parameters, etc.

Troubleshooting

Common failures and analysis troubleshooting approaches

Database Management

Database management: create, modify, delete, rebuild databases, and clone databases using templates

HBA Management

PostgreSQL and Pgbouncer HBA rule management operations: refresh, reload, verify, and troubleshoot.

SOP

Common PostgreSQL administration procedures in Pigsty for maintaining production database clusters.

Cluster Management

Standard operation guide for creating/destroying PostgreSQL clusters and scaling existing clusters.

User Management

Creating PostgreSQL users/roles, managing connection pool roles, refreshing expiration times, user password rotation

Parameter Tuning

Tuning Postgres Parameters

Accidental Deletion

Handling accidental data deletion, table deletion, and database deletion

Clone Replicas

How to clone databases, database instances, and database clusters?

Maintenance

Common system maintenance tasks

Version Upgrade

How to upgrade (or downgrade) PostgreSQL minor version kernel, and how to perform major version upgrades


Last modified 2026-01-06: update the homepage (54b7ef6)