Skip to content

add plpgsql_check extension#80

Open
racinette wants to merge 1 commit into
electric-sql:REL_18_3-pglitefrom
racinette:plpgsql-check-backend
Open

add plpgsql_check extension#80
racinette wants to merge 1 commit into
electric-sql:REL_18_3-pglitefrom
racinette:plpgsql-check-backend

Conversation

@racinette

@racinette racinette commented Jul 17, 2026

Copy link
Copy Markdown

Backend half of adding plpgsql_check (PL/pgSQL linter and static analyzer) as a dynamically loaded PGlite extension.

Companion PGlite PR: electric-sql/pglite#1057

  • .gitmodules: new submodule at pglite/other_extensions/plpgsql_check, pinned at upstream v2.10.1
  • other_extensions/Makefile: added to SUBDIRS, plus a dedicated packaging rule (modeled on age) that runs emstrip --strip-debug on the staged .so — upstream's Makefile hardcodes -g, and stripping at packaging time (1.3 MB → 242 KB) avoids patching the submodule
  • All 295 imported symbols resolve via the existing *.imports mechanism; only core symbols needed (two newly exported: free_conversion_map, FreeTupleDesc)

Tested with electricsql/pglite-builder:3.1.74-7 from a clean tree: tarball packs .so + .control + SQL; PGlite core suite passes (279 tests); companion package tests 7/7 (load, diagnostics, dump/load round trip, multi-instance, rollback, regprocedure signatures).

@racinette
racinette marked this pull request as ready for review July 17, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant