pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@eulerto.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: event trigger support for PL/Python
Date: Thu, 07 Aug 2025 20:31:18 -0300
Message-ID: <4027d006-d045-433d-b679-9831803aff04@app.fastmail.com> (raw)
In-Reply-To: <CAFj8pRBDX==ReHLtr4YacDRfBONA=HPRKB0arw82Tz78rmLBnA@mail.gmail.com>
References: <03f03515-2068-4f5b-b357-8fb540883c38@app.fastmail.com>
	<CAFj8pRB2CRwfE6wRoARbL50y3eW1j+hY7d4AvTFHCxJvrKbgyw@mail.gmail.com>
	<c56def96-0524-4e7b-8b5b-3de5a9f3c40e@app.fastmail.com>
	<CAFj8pRA_LmSMt7SRXgu+eF=rWF71ANCkG_wFE_PyVu4a4xjb9A@mail.gmail.com>
	<a654c6d4-725c-4ae8-b349-e13a113d0df5@app.fastmail.com>
	<CAFj8pRBDX==ReHLtr4YacDRfBONA=HPRKB0arw82Tz78rmLBnA@mail.gmail.com>

On Thu, Aug 7, 2025, at 1:53 AM, Pavel Stehule wrote:
> Minimally - you should to use PLPY_DML_TRIGGER instead PLPY_TRIGGER
>

I didn't use DML terminology for the same reason Peter said in another thread
[1]; let's *not* introduce a new terminology (DML trigger).

> Maybe the name "trigtype" can be better than "is_trigger". The 
> similarity with PLpgSQL has some benefits, but in this case I think so 
> the plpgsql design (of this case) is minimally confusing (and really 
> the related part in plpgsql_compile_callback can be cleaned). How much 
> - this is a question. There are two different things that are mixed 
> together (and this is what I dislike):
>

I'm fine with trigger kind or trigger type but I wouldn't like to use DML
trigger.


[1] https://www.postgresql.org/message-id/1379995202.8103.4.camel@vanquo.pezone.net


-- 
Euler Taveira
EDB   https://www.enterprisedb.com/





view thread (11+ messages)  latest in thread

Message-ID: <4027d006-d045-433d-b679-9831803aff04@app.fastmail.com>
Permalink:  ../4027d006-d045-433d-b679-9831803aff04@app.fastmail.com/
Also on:    postgresql.org/message-id/4027d006-d045-433d-b679-9831803aff04@app.fastmail.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-hackers@postgresql.org
  Cc: euler@eulerto.com, pavel.stehule@gmail.com
  Subject: Re: event trigger support for PL/Python
  In-Reply-To: <4027d006-d045-433d-b679-9831803aff04@app.fastmail.com>
  References: <03f03515-2068-4f5b-b357-8fb540883c38@app.fastmail.com> <CAFj8pRB2CRwfE6wRoARbL50y3eW1j+hY7d4AvTFHCxJvrKbgyw@mail.gmail.com> <c56def96-0524-4e7b-8b5b-3de5a9f3c40e@app.fastmail.com> <CAFj8pRA_LmSMt7SRXgu+eF=rWF71ANCkG_wFE_PyVu4a4xjb9A@mail.gmail.com> <a654c6d4-725c-4ae8-b349-e13a113d0df5@app.fastmail.com> <CAFj8pRBDX==ReHLtr4YacDRfBONA=HPRKB0arw82Tz78rmLBnA@mail.gmail.com> <4027d006-d045-433d-b679-9831803aff04@app.fastmail.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