PostgreSQL Administration Specialist
Overview
This skill routes PostgreSQL-specific database administration tasks to the dedicated PostgreSQL specialist for InfraForge AI.
Routing Criteria
Route to this skill when:
- PostgreSQL installation, configuration, and tuning
- Database clustering and replication setup
- PostgreSQL-specific performance optimization
- Connection pooling and pgBouncer configuration
- Backup strategies using pg_dump and WAL archiving
- Security configuration (pg_hba.conf, SSL, roles)
- PostgreSQL version upgrades and migrations
- Extensions management (PostGIS, pgvector, etc.)
- Troubleshooting PostgreSQL-specific issues
Capabilities
Installation & Configuration
- PostgreSQL installation on various platforms
- postgresql.conf tuning (memory, connections, parallelism)
- pg_hba.conf security configuration
- SSL/TLS setup for connections
High Availability & Replication
- Streaming replication setup
- PostgreSQL Cluster management (Patroni, Stolon)
- Automatic failover configuration
- Read replicas and load balancing
Backup & Recovery
- pg_dump and pg_dumpall usage
- Point-in-time recovery (PITR)
- WAL archiving and continuous archiving
- pgBackRest configuration
- Disaster recovery planning
Performance Tuning
- Query planning and execution analysis
- Index strategies (B-tree, GiST, GIN, BRIN)
- Autovacuum tuning and maintenance
- Connection pooling with PgBouncer
- Workload-specific tuning
Extensions & Advanced Features
- PostGIS geospatial operations
- Full-text search with pg_trgm
- JSON/JSONB operations
- Window functions and CTEs
- Partitioned tables
- Row-level security (RLS)
Monitoring & Troubleshooting
- pg_stat_statements analysis
- Log analysis and slow query logging
- Lock monitoring and deadlock detection
- Connection and session management
Related Skills
database-infraforge-database-infrastructure - Core database infrastructure
postgres-devforge-advanced-queries - Advanced PostgreSQL queries
Examples
Connection Pooling
-- Check connection usage
SELECT datname, numbackends, xact_commit, xact_rollback
FROM pg_stat_database;
-- pgBouncer statistics
SHOW POOLS;
SHOW STATS;
Performance Analysis
-- Top slow queries
SELECT query, calls, mean_time, total_time
FROM pg_stat_statements
ORDER BY mean_time DESC
LIMIT 10;
-- Index usage analysis
SELECT indexrelname, idx_scan, idx_tup_read, idx_tup_fetch
FROM pg_stat_user_indexes
WHERE idx_scan = 0
ORDER BY pg_relation_size(indexrelid) DESC;
This skill routes to the PostgreSQL specialist agent for database administration tasks.
1---2name: postgres-infraforge-postgresql3description: Routes PostgreSQL administration and management tasks to the PostgreSQL specialist for InfraForge AI.4company: infraforge-ai5metadata:6 source: https://skillmd.com/skills/construct-ai-primary/postgres-infraforge-postgresql7---89# PostgreSQL Administration Specialist1011## Overview12This skill routes PostgreSQL-specific database administration tasks to the dedicated PostgreSQL specialist for InfraForge AI.1314## Routing Criteria1516Route to this skill when:17- PostgreSQL installation, configuration, and tuning18- Database clustering and replication setup19- PostgreSQL-specific performance optimization20- Connection pooling and pgBouncer configuration21- Backup strategies using pg_dump and WAL archiving22- Security configuration (pg_hba.conf, SSL, roles)23- PostgreSQL version upgrades and migrations24- Extensions management (PostGIS, pgvector, etc.)25- Troubleshooting PostgreSQL-specific issues2627## Capabilities2829### Installation & Configuration30- PostgreSQL installation on various platforms31- postgresql.conf tuning (memory, connections, parallelism)32- pg_hba.conf security configuration33- SSL/TLS setup for connections3435### High Availability & Replication36- Streaming replication setup37- PostgreSQL Cluster management (Patroni, Stolon)38- Automatic failover configuration39- Read replicas and load balancing4041### Backup & Recovery42- pg_dump and pg_dumpall usage43- Point-in-time recovery (PITR)44- WAL archiving and continuous archiving45- pgBackRest configuration46- Disaster recovery planning4748### Performance Tuning49- Query planning and execution analysis50- Index strategies (B-tree, GiST, GIN, BRIN)51- Autovacuum tuning and maintenance52- Connection pooling with PgBouncer53- Workload-specific tuning5455### Extensions & Advanced Features56- PostGIS geospatial operations57- Full-text search with pg_trgm58- JSON/JSONB operations59- Window functions and CTEs60- Partitioned tables61- Row-level security (RLS)6263### Monitoring & Troubleshooting64- pg_stat_statements analysis65- Log analysis and slow query logging66- Lock monitoring and deadlock detection67- Connection and session management6869## Related Skills7071- `database-infraforge-database-infrastructure` - Core database infrastructure72- `postgres-devforge-advanced-queries` - Advanced PostgreSQL queries7374## Examples7576### Connection Pooling77```sql78-- Check connection usage79SELECT datname, numbackends, xact_commit, xact_rollback80FROM pg_stat_database;8182-- pgBouncer statistics83SHOW POOLS;84SHOW STATS;85```8687### Performance Analysis88```sql89-- Top slow queries90SELECT query, calls, mean_time, total_time91FROM pg_stat_statements92ORDER BY mean_time DESC93LIMIT 10;9495-- Index usage analysis96SELECT indexrelname, idx_scan, idx_tup_read, idx_tup_fetch97FROM pg_stat_user_indexes98WHERE idx_scan = 099ORDER BY pg_relation_size(indexrelid) DESC;100```101102---103104*This skill routes to the PostgreSQL specialist agent for database administration tasks.*