forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit72eab84
committed
Correctly mark pg_subscription.subslotname as nullable.
Due to the layout of this catalog, subslotname has to be explicitlymarked BKI_FORCE_NULL, else initdb will default to the assumptionthat it's non-nullable. Since, in fact, CREATE/ALTER SUBSCRIPTIONwill store null values there, the existing marking is just wrong,and has been since this catalog was invented.We haven't noticed because not much in the system actually dependson attnotnull being truthful. However, JIT'ed tuple deconstructiondoes depend on that in some cases, allowing crashes or wrong answersin queries that inspect pg_subscription. Commit9de77b5 quiteaccidentally exposed this on the buildfarm members that force JITactivation.Back-patch to v13. The problem goes further back, but we cannotforce initdb in released branches, so some klugier solution willbe needed there. Before working on that, push this simple fixto try to get the buildfarm back to green.Discussion:https://postgr.es/m/4118109.1595096139@sss.pgh.pa.us1 parent4d3db13 commit72eab84
File tree
3 files changed
+4
-3
lines changed- doc/src/sgml
- src/include/catalog
3 files changed
+4
-3
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7529 | 7529 |
| |
7530 | 7530 |
| |
7531 | 7531 |
| |
7532 |
| - | |
| 7532 | + | |
| 7533 | + | |
7533 | 7534 |
| |
7534 | 7535 |
| |
7535 | 7536 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
|
0 commit comments
Comments
(0)