postgresql_16:9.6.41 spi — Server Programming Interface features/examples
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > spi — Server Programming Interface features/examples
The spi module provides several workable examples of using the Server Programming Interface (see postgresql_16:6.10) (SPI) and triggers. While these functions are of some value in their own right, they are even more useful as examples to modify for your own purposes. The functions are general enough to be used with any table, but you have to specify table and field names (as described below) while creating a trigger.
Each of the groups of functions described below is provided as a separately-installable extension.
Subsections
- postgresql_16:9.6.41.1 refint — Functions for Implementing Referential Integrity
- postgresql_16:9.6.41.2 autoinc — Functions for Autoincrementing Fields
- postgresql_16:9.6.41.3 insert_username — Functions for Tracking Who Changed a Table
- postgresql_16:9.6.41.4 moddatetime — Functions for Tracking Last Modification Time