PL/python event_trigger

Поиск
Список
Период
Сортировка
Искать

PL/python event_trigger

От:
"Weatherby,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

 

 

 

FAQ