<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.memcp.org/index.php?action=history&amp;feed=atom&amp;title=Triggers</id>
	<title>Triggers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.memcp.org/index.php?action=history&amp;feed=atom&amp;title=Triggers"/>
	<link rel="alternate" type="text/html" href="https://www.memcp.org/index.php?title=Triggers&amp;action=history"/>
	<updated>2026-08-25T08:06:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://www.memcp.org/index.php?title=Triggers&amp;diff=267&amp;oldid=prev</id>
		<title>Carli: Created page with &quot;MemCP supports persistent BEFORE and AFTER triggers for INSERT, UPDATE, and DELETE. Trigger bodies can read &lt;code&gt;OLD&lt;/code&gt; and &lt;code&gt;NEW&lt;&lt;/code&gt;, assign permitted &lt;code&gt;NEW&lt;/code&gt; values, run conditional BEGIN/END bodies, and execute supported DML including &lt;code&gt;INSERT … SELECT&lt;/code&gt;.  Multiple triggers execute by registered priority. AFTER work may be configured as asynchronous, in which case its completion and failure are not identical to the originating statemen...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.memcp.org/index.php?title=Triggers&amp;diff=267&amp;oldid=prev"/>
		<updated>2026-08-21T11:03:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;MemCP supports persistent BEFORE and AFTER triggers for INSERT, UPDATE, and DELETE. Trigger bodies can read &amp;lt;code&amp;gt;OLD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;NEW&amp;lt;&amp;lt;/code&amp;gt;, assign permitted &amp;lt;code&amp;gt;NEW&amp;lt;/code&amp;gt; values, run conditional BEGIN/END bodies, and execute supported DML including &amp;lt;code&amp;gt;INSERT … SELECT&amp;lt;/code&amp;gt;.  Multiple triggers execute by registered priority. AFTER work may be configured as asynchronous, in which case its completion and failure are not identical to the originating statemen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;MemCP supports persistent BEFORE and AFTER triggers for INSERT, UPDATE, and DELETE. Trigger bodies can read &amp;lt;code&amp;gt;OLD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;NEW&amp;lt;&amp;lt;/code&amp;gt;, assign permitted &amp;lt;code&amp;gt;NEW&amp;lt;/code&amp;gt; values, run conditional BEGIN/END bodies, and execute supported DML including &amp;lt;code&amp;gt;INSERT … SELECT&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Multiple triggers execute by registered priority. AFTER work may be configured as asynchronous, in which case its completion and failure are not identical to the originating statement&amp;#039;s synchronous path. Trigger changes participate in transaction/savepoint recovery.&lt;br /&gt;
&lt;br /&gt;
MemCP also uses hidden system triggers to enforce constraints and maintain computed columns, group caches, prejoins, and invalidation dependencies. User DROP/CASCADE behavior must not delete unrelated data; lifecycle callbacks are not general garbage collectors.&lt;br /&gt;
&lt;br /&gt;
Test trigger persistence across restart, multi-row statements, NULL/default handling, errors, ordering, cross-table writes, and rollback. Recursive trigger graphs should be treated with particular care.&lt;/div&gt;</summary>
		<author><name>Carli</name></author>
	</entry>
</feed>