PL/python event_trigger

From: "Weatherby,Gerard" <gweatherby(at)uchc(dot)edu>
To: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: PL/python event_trigger
Date: 2024-08-01 17:55:23
Message-ID: SA1PR14MB5855CD454EBDF3E0EC636A21B9B22@SA1PR14MB5855.namprd14.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***
It seems event triggers can not be writen in plypython3u

CREATE OR REPLACE FUNCTION log_schema_changes()
RETURNS EVENT_TRIGGER
LANGUAGE plpython3u
AS $$
import plpy
plyp.warning(TD)
$$;

Generates error “ERROR: trigger functions can only be called as triggers”

Version info is: psql (15.6 (Ubuntu 15.6-1.pgdg20.04+1), server 15.7 (Ubuntu 15.7-1.pgdg22.04+1))

-----------------------------------

GERARD WEATHERBY
Application Architect

NMRhub
nmrhub.org<https://nmrhub.org>

[signature_1087073379]

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2024-08-01 19:23:29 Re: BUG #18563: Where is tha "FIRST" aggregate function??
Previous Message PG Bug reporting form 2024-08-01 17:54:44 BUG #18565: Job finishes successfully but reruns unwanted!!!