postgresql_16:6.2 Triggers
PostgreSQL 16 > Server Programming > Triggers
This chapter provides general information about writing trigger functions. Trigger functions can be written in most of the available procedural languages, including PL/pgSQL ((see postgresql_16:6.6)), PL/Tcl ((see postgresql_16:6.7)), PL/Perl ((see postgresql_16:6.8)), and PL/Python ((see postgresql_16:6.9)). After reading this chapter, you should consult the chapter for your favorite procedural language to find out the language-specific details of writing a trigger in it.
It is also possible to write a trigger function in C, although most people find it easier to use one of the procedural languages. It is not currently possible to write a trigger function in the plain SQL function language.
Subsections
- postgresql_16:6.2.1 Overview of Trigger Behavior
- postgresql_16:6.2.2 Visibility of Data Changes
- postgresql_16:6.2.3 Writing Trigger Functions in C
- postgresql_16:6.2.4 A Complete Trigger Example