pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: PL/Python: Add event trigger support
Date: Thu, 21 Aug 2025 07:44:28 +0000
Message-ID: <E1uozyF-000wIc-2Z@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/53eff471c69dc8b0c01f046d3fdcc460eb90d0e5

Modified Files
--------------
doc/src/sgml/plpython.sgml                    | 76 +++++++++++++++++++++++++++
src/pl/plpython/expected/plpython_trigger.out | 27 ++++++++++
src/pl/plpython/plpy_exec.c                   | 42 +++++++++++++++
src/pl/plpython/plpy_exec.h                   |  1 +
src/pl/plpython/plpy_main.c                   | 11 ++++
src/pl/plpython/plpy_procedure.h              |  1 +
src/pl/plpython/sql/plpython_trigger.sql      | 24 +++++++++
7 files changed, 182 insertions(+)



Message-ID: <E1uozyF-000wIc-2Z@gemulon.postgresql.org>
Permalink:  ../E1uozyF-000wIc-2Z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uozyF-000wIc-2Z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: PL/Python: Add event trigger support
  In-Reply-To: <E1uozyF-000wIc-2Z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox