- Notifications
You must be signed in to change notification settings - Fork28
Commit4c9e1bd
committed
Reset memory context once per tuple in validateForeignKeyConstraint.
When using tableam ExecFetchSlotHeapTuple() might return a separatelyallocated tuple. We could use the shouldFree argument to explicitlyfree it, but it seems more robust to to protectAlso add a CHECK_FOR_INTERRUPTS() after each tuple. It's likely thateach AM has (heap does) a CFI somewhere in the relevant path, but itseems more robust to have one in validateForeignKeyConstraint()itself.Note that this only affects the cases that couldn't be optimized to beverified with a query.Author: Andres FreundReviewed-By: Tom Lane (in an earlier version)Discussion:https://postgr.es/m/19030.1554574075@sss.pgh.pa.ushttps://postgr.es/m/CAKJS1f_SHKcPYMsi39An5aUjhAcEMZb6Cx1Sj1QWEWSiKJkBVQ@mail.gmail.comhttps://postgr.es/m/20180711185628.mrvl46bjgk2uxoki@alap3.anarazel.de1 parent41f5e04 commit4c9e1bd
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9593 | 9593 |
| |
9594 | 9594 |
| |
9595 | 9595 |
| |
| 9596 | + | |
| 9597 | + | |
9596 | 9598 |
| |
9597 | 9599 |
| |
9598 | 9600 |
| |
| |||
9628 | 9630 |
| |
9629 | 9631 |
| |
9630 | 9632 |
| |
| 9633 | + | |
| 9634 | + | |
| 9635 | + | |
| 9636 | + | |
| 9637 | + | |
9631 | 9638 |
| |
9632 | 9639 |
| |
9633 | 9640 |
| |
9634 | 9641 |
| |
9635 | 9642 |
| |
| 9643 | + | |
| 9644 | + | |
9636 | 9645 |
| |
9637 | 9646 |
| |
9638 | 9647 |
| |
| |||
9649 | 9658 |
| |
9650 | 9659 |
| |
9651 | 9660 |
| |
| 9661 | + | |
9652 | 9662 |
| |
9653 | 9663 |
| |
9654 | 9664 |
| |
9655 | 9665 |
| |
9656 | 9666 |
| |
| 9667 | + | |
| 9668 | + | |
9657 | 9669 |
| |
9658 | 9670 |
| |
| 9671 | + | |
| 9672 | + | |
9659 | 9673 |
| |
9660 | 9674 |
| |
9661 | 9675 |
| |
|
0 commit comments
Comments
(0)