Fix for recursive plpython triggers

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-05-04T20:16:39Z
Lists: pgsql-hackers

Attachments

This fixes bug #18456 [1].  Since we're in back-branch release freeze,
I'll just park it for the moment.  But I think we should shove it in
once the freeze lifts so it's in 17beta1.

			regards, tom lane

[1] https://www.postgresql.org/message-id/18456-82d3d70134aefd28%40postgresql.org

Commits

  1. Fix recursive RECORD-returning plpython functions.

  2. Don't corrupt plpython's "TD" dictionary in a recursive trigger call.