Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ukA5M-00GUZv-AU for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Aug 2025 23:31:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ukA5K-00Fn7g-EM for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Aug 2025 23:31:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ukA5J-00Fn3Y-DD for pgsql-hackers@lists.postgresql.org; Thu, 07 Aug 2025 23:31:46 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ukA5G-001LFD-05 for pgsql-hackers@lists.postgresql.org; Thu, 07 Aug 2025 23:31:44 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 773301D00111; Thu, 7 Aug 2025 19:31:39 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-07.internal (MEProxy); Thu, 07 Aug 2025 19:31:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1754609499; x=1754695899; bh=XVTujZvTDcHhfCY/MJrWXXpDuiSm/1WI1Kv5jhAN2HM=; b= jn4pMUjhCp/XZJDtGqxBSxOrEjGzfSV67YoTMgQYjZA3us2shsDvkW0UgriFSS/3 86eqMZfEDoy3YMguz4MGYq68sQ925TyS1a8OMFEkIln/VquffsHMeFDgTShLJ+Fx xaIXdEP6rATW4jPj1cBFloAqepyyyxbTUZokjSftkMQWK8BzIV6m6z0CTfFQB6/T Krp9zVMSfU8QHZv8fAHBADpjJJSASQsTRwWzqIwXfO1bK2YJlGvf0NnJ80eHcaV9 JiMiOUrSb+ei6sUX8X/3TXn4mzxm9fExXLG5E6vw29uvl13P3g5j1/CSNbmdKdnI GFZLzL24FxQVxHVbcOJqbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1754609499; x= 1754695899; bh=XVTujZvTDcHhfCY/MJrWXXpDuiSm/1WI1Kv5jhAN2HM=; b=k 1XESBfRhZwax7NWy7aOsx210uFgZ+1n/Xe+MNHpr8Lc6VJnrRyd+3VQfOHrzsKjt zHFrKEpn+lXNsw2NGAjktivyXqdxApKBX8GGcwtHDTQ2ql89IJJchmq40JZ6RvAI kXTMNg5J6OKqH68U2XKK07NGglUN5MnXvG6t1HBhEhAV4rEJ0yq8Gm2LcP0t72pn 4tuxaw8UQO7R44xSTTGgcFNLTQKhqtSCrBNrmc5BsHnYw+29eFbsh24jROCiLYOL 4HBYS+0WSRAeYVC+Mk9RBPdczw7UmV3W8RM72fMyynyrVZ39Nw2xBYh2g9LKqhZD K7klliYW8ZgT/ODWHC0Wg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvddvvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfgfhulhgv rhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecuggftrf grthhtvghrnhepfeehgfejheegleelkefghfetheevheetlefffeejgfdvvdduieevheeh keejveeunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepvghulhgvrhesvghulhgvrhhtohdrtghomhdpnhgspghrtghpthhtohepvd dpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrvhgvlhdrshhtvghhuhhlvges ghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsth hsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id A6FEC1820074; Thu, 7 Aug 2025 19:31:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T10fc56e95b3c6546 Date: Thu, 07 Aug 2025 20:31:18 -0300 From: "Euler Taveira" To: "Pavel Stehule" Cc: pgsql-hackers@lists.postgresql.org Message-Id: <4027d006-d045-433d-b679-9831803aff04@app.fastmail.com> In-Reply-To: References: <03f03515-2068-4f5b-b357-8fb540883c38@app.fastmail.com> Subject: Re: event trigger support for PL/Python Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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/