feat: add extensions boilerplates for Rust and C PostgreSQL extensions #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
extensionsboilerplate category with workspace and module templates for building PostgreSQL extensions in Rust (using pgrx) and C (using PGXS).New structure:
extensions/workspace/- Makefile-based workspace for managing multiple extensionsextensions/rust/- Rust extension module using pgrx 0.12extensions/c/- C extension module using standard PGXS build systemEach module includes build setup, README, gitignore, and a simple "hello" function as a starting point.
Review & Testing Checklist for Human
hello_____moduleName____(5 underscores) which may conflict with the____name____pattern. Scaffold a test project to verify placeholders resolve correctly.expected/____moduleName____.outfile has hardcoded column widths that may not match actual psql output formatting.Recommended test plan:
extensions/workspacemake buildandmake testwork for both extension typesNotes
Requested by: Dan Lynch (@pyramation)
Devin session: https://app.devin.ai/sessions/a5cb8d91114445c982dff9551d9c6e68