Re: delta relations in AFTER triggers
Heikki Linnakangas <hlinnakangas@vmware.com>
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Kevin Grittner <kgrittn@ymail.com>, Craig Ringer <craig@2ndquadrant.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2014-09-26T12:21:28Z
Lists: pgsql-hackers
On 09/25/2014 06:54 PM, Kevin Grittner wrote: > Heikki Linnakangas <hlinnakangas@vmware.com> wrote: > >> You cast the TuplestoreRelation to Plan, and pass it to CopyPlanFields. >> That will crash, because TuplestoreRelation is nothing like a Plan: > > Oops. That's a copy/paste error I should have noticed. Fixed, > even though the node type might be going away. Since all of this > seems to be working very well from a user point of view, I'm going > to try to generate a lot more regression tests against the existing > code before taking another run at the API, to make sure that things > don't break in the refactoring. > > I didn't hit the copy/out bugs in testing so far -- any suggestions > on a test that would exercise this code? (I'm probably missing > something obvious.) There's some debugging code in tcop/postgres.c, search for COPY_PARSE_PLAN_TREES. It won't catch everything, but probably would've caught this one. - Heikki
Commits
-
Don't permit transition tables with TRUNCATE triggers.
- 29fd3d9da0ff 10.0 landed
-
Pass EXEC_FLAG_REWIND when initializing a tuplestore scan.
- 304007d9f1f6 10.0 landed
-
Faster expression evaluation and targetlist projection.
- b8d7f053c5c2 10.0 cited
-
Remove obsoleted code relating to targetlist SRF evaluation.
- ea15e18677fc 10.0 cited
-
Implement syntax for transition tables in AFTER triggers.
- 8c48375e5f43 10.0 cited