- Notifications
You must be signed in to change notification settings - Fork5
Commitda6a707
committed
Fix pg_plan_queries() to restore the previous setting of ActiveSnapshot
(probably NULL) before exiting. Up to now it's just left the variable as itset it, which means that after we're done processing the current clientmessage, ActiveSnapshot is probably pointing at garbage (because this functionis typically run in MessageContext which will get reset). There doesn't seemto have been any code path in which that mattered before 8.3, but now theplancache module might try to use the stale value if the next client messageis a Bind for a prepared statement that is in need of replanning. Per reportfrom Alex Hunsaker.1 parent0d540b0 commitda6a707
1 file changed
+35
-17
lines changedLines changed: 35 additions & 17 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 |
| |
| |||
730 | 730 |
| |
731 | 731 |
| |
732 | 732 |
| |
733 |
| - | |
734 |
| - | |
| 733 | + | |
| 734 | + | |
735 | 735 |
| |
736 |
| - | |
| 736 | + | |
| 737 | + | |
737 | 738 |
| |
738 |
| - | |
739 |
| - | |
| 739 | + | |
| 740 | + | |
740 | 741 |
| |
741 |
| - | |
| 742 | + | |
742 | 743 |
| |
743 |
| - | |
744 |
| - | |
745 |
| - | |
746 |
| - | |
747 |
| - | |
748 |
| - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
749 | 753 |
| |
750 |
| - | |
751 |
| - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
752 | 761 |
| |
753 |
| - | |
| 762 | + | |
| 763 | + | |
754 | 764 |
| |
755 | 765 |
| |
756 |
| - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
757 | 773 |
| |
| 774 | + | |
| 775 | + | |
758 | 776 |
| |
759 | 777 |
| |
760 | 778 |
| |
|
0 commit comments
Comments
(0)