PL/Python: Add event trigger support
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Aug 2025 07:15:55 +0000 (09:15 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Aug 2025 07:21:11 +0000 (09:21 +0200)
commit53eff471c69dc8b0c01f046d3fdcc460eb90d0e5
tree23bfdba9878b0318d1fe8ecb6aba22aa1ff48ad3
parent6e09c960ebb353c6cbcc05191c68aea4079df277
PL/Python: Add event trigger support

Allow event triggers to be written in PL/Python.  It provides a TD
dictionary with some information about the event trigger.

Author: Euler Taveira <euler@eulerto.com>
Co-authored-by: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/03f03515-2068-4f5b-b357-8fb540883c38%40app.fastmail.com
doc/src/sgml/plpython.sgml
src/pl/plpython/expected/plpython_trigger.out
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_exec.h
src/pl/plpython/plpy_main.c
src/pl/plpython/plpy_procedure.h
src/pl/plpython/sql/plpython_trigger.sql