What problem does it solve?
This skill eliminates the risk of hallucinating PostgreSQL parallel-query conventions, such as incorrect locking orders, improper DSM usage, or unsafe function markings, ensuring your backend patches and extensions are robust and performant.
Core Features & Use Cases
- ParallelContext Lifecycle Management: Provides a procedural cookbook for managing the lifecycle of parallel workers, including DSM allocation and TOC key management.
- Safety & Compliance: Guides the correct application of PARALLEL SAFE, RESTRICTED, and UNSAFE markings for SQL-callable functions and custom executor nodes.
- Use Case: When developing a custom PostgreSQL extension that requires parallel execution, use this skill to correctly plumb your code into execParallel.c and ensure your shared memory state is handled without deadlocks or race conditions.
Quick Start
Use the parallel-query skill to guide the implementation of a new parallel-aware executor node and verify the required DSM lifecycle hooks.