optpaths
Planner hook extension for adding paths and removing self joins
anotherSelfJoin · Planner hook extension for adding paths and removing self joins
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100501 | optpaths | anotherSelfJoin | 0.1 | FEAT | BSD-3-Clause | C |
Usage
Sources:
optpaths 0.1 is an experimental planner hook that attempts to remove a narrow class of redundant self joins when uniqueness conditions allow it.
Isolated evaluation
Load the library at server start, restart, and test only in a disposable database:
Compare plans and results with the hook enabled and disabled before considering a workload.
Caveats
- The install SQL creates a generic table named test and inserts two rows. Installation can collide with an existing table and modifies the chosen extension schema.
- CREATE EXTENSION does not load the planner library. Preloading and a server restart are required for predictable activation.
- The hook mutates internal planner structures and covers only limited join shapes. There is no current major-version compatibility matrix or regression suite proving equivalent results.
- remove_self_joins and log_level are user-settable settings. Verbose logging can flood clients or server logs.
- Test exact query semantics, prepared plans, parallel plans, partitioning, row security, and upgrades in isolation. Do not enable this prototype cluster-wide without review.