- Notifications
You must be signed in to change notification settings - Fork5
Commit87081b2
committed
Fix an oversight in my patch of a couple weeks ago that ensured a snapshot
is available during datatype input in Bind message processing. I put thePopActiveSnapshot() or equivalent just before PortalDefineQuery, which isan unsafe spot for it (in 8.3 and later) because we are carrying a plancacherefcount that hasn't yet been assigned to the portal. Any error thrown therewould result in leaking the refcount. It's not exactly likely thatPopActiveSnapshot would throw an elog, perhaps, but it could happen.Reorder the code and add another comment warning not to do that.1 parentdf0ea5a commit87081b2
1 file changed
+12
-6
lines changedLines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1714 | 1714 |
| |
1715 | 1715 |
| |
1716 | 1716 |
| |
1717 |
| - | |
1718 |
| - | |
1719 |
| - | |
1720 |
| - | |
1721 | 1717 |
| |
1722 |
| - | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1723 | 1722 |
| |
1724 | 1723 |
| |
1725 | 1724 |
| |
| |||
1728 | 1727 |
| |
1729 | 1728 |
| |
1730 | 1729 |
| |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
1731 | 1737 |
| |
1732 | 1738 |
| |
1733 | 1739 |
| |
|
0 commit comments
Comments
(0)