Add PL/Sample to src/test/modules/
authorMichael Paquier <michael@paquier.xyz>
Tue, 18 Aug 2020 02:10:50 +0000 (11:10 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 18 Aug 2020 02:10:50 +0000 (11:10 +0900)
commitadbe62d04b360bbd408d97e447932d8078485972
tree7b3559368e70ff18c96bd0b15974d085778397a8
parent6e70443edacfc86674995c0c10ade0aec7a4fddf
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
doc/src/sgml/plhandler.sgml
src/test/modules/Makefile
src/test/modules/plsample/.gitignore [new file with mode: 0644]
src/test/modules/plsample/Makefile [new file with mode: 0644]
src/test/modules/plsample/README [new file with mode: 0644]
src/test/modules/plsample/expected/plsample.out [new file with mode: 0644]
src/test/modules/plsample/plsample--1.0.sql [new file with mode: 0644]
src/test/modules/plsample/plsample.c [new file with mode: 0644]
src/test/modules/plsample/plsample.control [new file with mode: 0644]
src/test/modules/plsample/sql/plsample.sql [new file with mode: 0644]