forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita53ea46
committed
Hi all,
I don't know if this is really related to the initdb problem discussion (haven't followed it enough). But seems so because it fixes a damn problem during index tuple insertion on CREATE TABLE into pg_attribute_relid_attnum_index. Anyway - this bug was really hard to find. During startup the relcache reads in some prepared information about index strategies from a file and then reinitializes the function pointers inside the scanKey data. But for sake it assumed single attribute index tuples (hasn't that changed recently). Thus not all the strategies scanKey entries where initialized properly, resulting in invalid addresses for the btree comparision functions. With the patch at the end the regression tests passed excellent except for the sanity_check that crashed at vacuum and the misc test where the select unique1 from onek2 outputs the two rows in different order.Jan1 parent602ac52 commita53ea46
File tree
4 files changed
+20
-25
lines changed- src
- backend
- catalog
- commands
- utils/cache
- bin/psql
4 files changed
+20
-25
lines changedLines changed: 10 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1267 | 1267 |
| |
1268 | 1268 |
| |
1269 | 1269 |
| |
1270 |
| - | |
1271 | 1270 |
| |
1272 | 1271 |
| |
1273 | 1272 |
| |
| |||
1277 | 1276 |
| |
1278 | 1277 |
| |
1279 | 1278 |
| |
1280 |
| - | |
| 1279 | + | |
1281 | 1280 |
| |
1282 |
| - | |
1283 |
| - | |
1284 |
| - | |
1285 |
| - | |
1286 |
| - | |
1287 |
| - | |
1288 |
| - | |
1289 |
| - | |
1290 |
| - | |
1291 |
| - | |
1292 |
| - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1293 | 1289 |
| |
1294 | 1290 |
| |
1295 | 1291 |
| |
|
Lines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1143 | 1143 |
| |
1144 | 1144 |
| |
1145 | 1145 |
| |
1146 |
| - | |
1147 |
| - | |
1148 |
| - | |
| 1146 | + | |
| 1147 | + | |
1149 | 1148 |
| |
1150 | 1149 |
| |
1151 | 1150 |
| |
1152 | 1151 |
| |
1153 | 1152 |
| |
1154 |
| - | |
1155 |
| - | |
| 1153 | + | |
1156 | 1154 |
| |
1157 | 1155 |
| |
1158 | 1156 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1982 | 1982 |
| |
1983 | 1983 |
| |
1984 | 1984 |
| |
1985 |
| - | |
| 1985 | + | |
1986 | 1986 |
| |
1987 | 1987 |
| |
1988 |
| - | |
| 1988 | + | |
| 1989 | + | |
1989 | 1990 |
| |
1990 | 1991 |
| |
1991 | 1992 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
356 |
| - | |
| 356 | + | |
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
|
0 commit comments
Comments
(0)