forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd59974
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 parentc571b51 commitfd59974
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
646 | 646 |
| |
647 | 647 |
| |
648 | 648 |
| |
| 649 | + | |
| 650 | + | |
| 651 | + | |
649 | 652 |
| |
650 | 653 |
| |
651 | 654 |
| |
| |||
669 | 672 |
| |
670 | 673 |
| |
671 | 674 |
| |
| 675 | + | |
| 676 | + | |
672 | 677 |
| |
673 | 678 |
| |
674 | 679 |
| |
|
0 commit comments
Comments
(0)