- Notifications
You must be signed in to change notification settings - Fork5
Commite262755
committed
Fix cache flush hazard in cache_record_field_properties().
We need to increment the refcount on the composite type's cached tupledescriptor while we do lookups of its column types. Otherwise a cacheflush could occur and release the tuple descriptor before we're done withit. This fails reliably with -DCLOBBER_CACHE_ALWAYS, but the odds of afailure in a production build seem rather low (since the pfree'd descriptortypically wouldn't get scribbled on immediately). That may explain thelack of any previous reports. Buildfarm issue noted by Christian Ullrich.Back-patch to 9.1 where the bogus code was added.1 parentecdec47 commite262755
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
648 | 648 |
| |
649 | 649 |
| |
650 | 650 |
| |
| 651 | + | |
| 652 | + | |
| 653 | + | |
651 | 654 |
| |
652 | 655 |
| |
653 | 656 |
| |
| |||
671 | 674 |
| |
672 | 675 |
| |
673 | 676 |
| |
| 677 | + | |
| 678 | + | |
674 | 679 |
| |
675 | 680 |
| |
676 | 681 |
| |
|
0 commit comments
Comments
(0)