- Notifications
You must be signed in to change notification settings - Fork5
Commit5dc851a
committed
Fix incorrect output from gin_desc().
Previously gin_desc() displayed incorrect output "unknown action 0"for XLOG_GIN_INSERT and XLOG_GIN_VACUUM_DATA_LEAF_PAGE records withvalid actions. The cause of this problem was that gin_desc() wronglyused XLogRecGetData() to extract data from those records.Since they were registered by XLogRegisterBufData(), gin_desc() shouldhave used XLogRecGetBlockData(), instead, like gin_redo().Also there were other differences about how to treat XLOG_GIN_INSERTrecord between gin_desc() and gin_redo().This commit fixes gin_desc() routine so that it treats those recordsin the same way as gin_redo().Batch-patch to 9.5 where WAL record format was revamped andXLogRegisterBufData() was added.Reported-By: Andres FreundReviewed-By: Tom LaneDiscussion: <20160509194645.7lewnpw647zegx2m@alap3.anarazel.de>1 parent3850723 commit5dc851a
1 file changed
+24
-21
lines changedLines changed: 24 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
94 | 93 |
| |
95 | 94 |
| |
96 | 95 |
| |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 107 | + | |
| 108 | + | |
120 | 109 |
| |
121 | 110 |
| |
122 |
| - | |
| 111 | + | |
123 | 112 |
| |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
148 |
| - | |
149 | 147 |
| |
150 | 148 |
| |
151 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 |
| |
| 155 | + | |
153 | 156 |
| |
154 | 157 |
| |
155 | 158 |
| |
|
0 commit comments
Comments
(0)