postgresql-partitioning-sharding
/postgresql-partitioning-sharding
Use this skill when partitioning massive PostgreSQL tables by range, list, or hash for high-throughput scaling.
- Author
- nextboxis ↗
- Repository
- library-skill-agents ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use this skill when partitioning massive PostgreSQL tables by range, list, or hash for high-throughput scaling.
Original author description
Use this skill when partitioning massive PostgreSQL tables by range, list, or hash for high-throughput scaling.
How it works
- When to use
- Prerequisites
- Step-by-step workflow
- Commands / code examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
SKILL.md preview
--- name: postgresql-partitioning-sharding description: Use this skill when partitioning massive PostgreSQL tables by range, list, or hash for high-throughput scaling. --- # PostgreSQL Table Partitioning & Sharding ## When to use Use this skill when you need to partitioning massive PostgreSQL tables by range, list, or hash for high-throughput scaling. ## Prerequisites - Working knowledge of relevant programming language or database fundamentals. - Access to testing environment or local runtime instance. ## Step-by-step workflow 1. **Analyze operational requirements**: Review performance boundaries, data integrity constraints, and query patterns. 2. **Design schema / interface**: Define explicit data contracts, types, or indexes supporting planned operations. 3. **Implement core routines**: Construct declarative, type-safe, or parameterized queries and functions. 4. **Validate performance**: Verify execution metrics using profilers, EXPLAIN plans, or benchmark test suites. 5. **Implement defensive controls**: Enforce timeout boundaries, connection pooling limits, and transaction safety. ## Commands / code examples ```sql -- Production query and schema pattern for postgresql-partitioning-sharding BEGIN; SELECT 1; COMMIT; ``` ## Common mistakes & pitfalls - Overlooking indexing strategies on foreign keys and frequently queried filter columns. - Running unparameterized dynamic queries, creating severe SQL injection vulnerabilities. - Holding open long-running database transactions during slow external network calls. ## Verification checklist - [ ] Schema contracts and type signatures are strictly enforced. - [ ] Queries are fully parameterized against injection vulnerabilities. - [ ] Profiling or execution plans show optimal resource consumption. - [ ] Error handling safely releases locks and rolls back aborted transactions. ## Related skills - postgresql-query-optimization-explain - sql-anti-patterns-remediation - acid-transactions-isolation-levels - secure-code-review-static-analysis-sast
Versions
The database has no other skills named postgresql-partitioning-sharding.
Database snapshot: 13.11.2026 · package version e05b96c462b4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100database-sharding-horizontal-scaling
Use this skill when distributing massive database storage across physical shards using hash, range, or lookup shard keys. - 90partition-planner
Produces a partitioning or sharding plan for an oversized table - range/list/hash strategy, partition-key choice, composite-key and pruning constraints, and a verdict on whether to partition at all. Use when one table has grown past tens of millions of rows or hundreds of GB,… - 95architecture-database-scaling
Use this skill when the user says 'scale the database', 'sharding', 'shard key', 'consistent hashing', 'read replicas', 'partitioning', 'Citus', 'Vitess', 'resharding', 'hot partition'. Walks the scaling ladder from query/index fixes through vertical scaling, caching, read… - 95documentdb-sharding
Horizontal sharding (partitioning) for Azure DocumentDB collections — when to shard vs stay single-shard, how to pick a shard key for read-heavy vs write-heavy workloads, the logical/physical shard mental model, scaling out vs scaling up, hot-partition diagnosis, and the… - 90sharding-partitioning
Scale databases by partitioning and sharding with a good key, handling resharding and cross-shard queries, and knowing when to avoid it. Use when one database can no longer hold or serve the load. - 90postgresql
PostgreSQL schema design, query optimization, indexing, and administration. Use when working with PostgreSQL, JSONB, partitioning, RLS, CTEs, window functions, or EXPLAIN ANALYZE.