pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Pozolotin <andrei.pozolotin@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Question: what is proper way to define python function as event_trigger?
Date: Sun, 22 Dec 2019 20:53:20 -0600
Message-ID: <4e7649dbb7d058ccc5a492793feca49e@gmail.com> (raw)
In-Reply-To: <9760.1577058006@sss.pgh.pa.us>
References: <0d6c5bdc3ab532bc3240cfb14bc55ce9@gmail.com>
	<9760.1577058006@sss.pgh.pa.us>

Tom, hi:

1. actual use case has to do with:
BUG #16177: pg_event_trigger_ddl_commands() returns empty set for 
ddl_command_start and "drop table"
https://www.postgresql.org/message-id/16177-053a34714817c3e1%40postgresql.org

2. I was merely hoping to re-implement pg_event_trigger_ddl_commands as 
part of python event_trigger

3. do you think "pg_event_trigger_ddl_commands" is any easier to fix 
then "support event_trigger in python"?

Thank you,

Andrei

On 2019-12-22 17:40, Tom Lane wrote:
> Andrei Pozolotin <andrei.pozolotin@gmail.com> writes:
>> 1. any attempt to define python function as an event_trigger, i.e.:
> 
> AFAICS, there's not really any event trigger support in plpython.
> That feature has only been built out in the other three PLs.
> 
> Somebody oughta fix this sometime, I guess, but it evidently hasn't
> been high priority.  If you feel like working on it, you could look
> at commits e5dc4cc24d2e1e94ac572a2c64103710bf15d21e (for plperl)
> and/or a5036ca998a6058f60913d43a80badfcbb65f5bb (for pltcl).
> 
> 			regards, tom lane





view thread (6+ messages)

Message-ID: <4e7649dbb7d058ccc5a492793feca49e@gmail.com>
Permalink:  ../4e7649dbb7d058ccc5a492793feca49e@gmail.com/
Also on:    postgresql.org/message-id/4e7649dbb7d058ccc5a492793feca49e@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andrei.pozolotin@gmail.com
  Subject: Re: Question: what is proper way to define python function as event_trigger?
  In-Reply-To: <4e7649dbb7d058ccc5a492793feca49e@gmail.com>
  References: <0d6c5bdc3ab532bc3240cfb14bc55ce9@gmail.com> <9760.1577058006@sss.pgh.pa.us> <4e7649dbb7d058ccc5a492793feca49e@gmail.com>

* 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