forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6bfacd3
committed
Undo unintentional ABI break in struct ResultRelInfo.
Commitsaac2c9b et al. added a bool field to struct ResultRelInfo.That's no problem in the master branch, but in released branchescare must be taken when modifying publicly-visible structs to avoidan ABI break for extensions. Frequently we solve that by adding thenew field at the end of the struct, and that's what was done here.But ResultRelInfo has stricter constraints than just about any othernode type in Postgres. Some executor APIs require extensions to indexinto arrays of ResultRelInfo, which means that any change whatever insizeof(ResultRelInfo) causes a fatal ABI break.Fortunately, this is easy to fix, because the new field can besqueezed into available padding space instead --- indeed, that's whereit was put in master, so this fix also removes a cross-branch codingvariation.Per report from Pavan Deolasee. Patch v14-v17 only; earlier versionsdid not gain the extra field, nor is there any problem in master.Discussion:https://postgr.es/m/CABOikdNmVBC1LL6pY26dyxAS2f+gLZvTsNt=2XbcyG7WxXVBBQ@mail.gmail.com1 parent1c05004 commit6bfacd3
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
487 | 490 | | |
488 | 491 | | |
489 | 492 | | |
| |||
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| |||
0 commit comments
Comments
(0)