PL/python event_trigger

Started by Weatherby,Gerardover 1 year ago1 messagesbugs
Jump to latest
#1Weatherby,Gerard
gweatherby@uchc.edu

*** 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&gt;

[signature_1087073379]

Attachments:

image001.jpgimage/jpeg; name=image001.jpgDownload