Add PL/Sample to src/test/modules/
Michael Paquier <michael@paquier.xyz>
Add PL/Sample to src/test/modules/ PL/Sample is an example template of procedural-language handler. This can be used as a base to implement a custom PL, or as a facility to test APIs dedicated to PLs. Much more could be done in this module, like adding a simple validator, but this is left as future work. The documentation included originally some C code to understand the basics of PL handler implementation, but it was outdated, and not really helpful either if trying to implement a new procedural language, particularly when it came to the integration of a PL installation with CREATE EXTENSION. Author: Mark Wong Reviewed-by: Tom Lane, Michael Paquier Discussion: https://postgr.es/m/20200612172648.GA3327@2ndQuadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plhandler.sgml | modified | +4 −56 |
| src/test/modules/Makefile | modified | +1 −0 |
| src/test/modules/plsample/expected/plsample.out | added | +36 −0 |
| src/test/modules/plsample/.gitignore | added | +3 −0 |
| src/test/modules/plsample/Makefile | added | +20 −0 |
| src/test/modules/plsample/plsample--1.0.sql | added | +14 −0 |
| src/test/modules/plsample/plsample.c | added | +183 −0 |
| src/test/modules/plsample/plsample.control | added | +8 −0 |
| src/test/modules/plsample/README | added | +6 −0 |
| src/test/modules/plsample/sql/plsample.sql | added | +15 −0 |
Documentation touched
Discussion
- doc examples for pghandler 11 messages · 2020-06-12 → 2020-08-18