- Notifications
You must be signed in to change notification settings - Fork5
Commit61eaefe
committed
This patch for Versions 1 and 2 corrects the following bug:
In a catalog class that has a "name" type attribute, UPDATEing of aninstance of that class may destroy all of the attributes of thatinstance that are stored as or after the "name" attribute.This is caused by the alignment value of the "name" type being set to"double" in Class pg_type, but "integer" in Class pg_attribute.Postgres constructs a tuple using double alignment, but interprets itusing integer alignment.The fix is to change the alignment to integer in pg_type.Note that this corrects the problem for new Postgres systems. Existingdatabases already contain the error and it can't easily be repaired becausethis very bug prevents updating the class that contains it.--Bryan Henderson Phone 408-227-6803San Jose, California1 parent208a30f commit61eaefe
2 files changed
+63
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 |
| |
48 | 54 |
| |
49 | 55 |
| |
50 | 56 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 |
| |
55 | 61 |
| |
56 | 62 |
| |
| |||
68 | 74 |
| |
69 | 75 |
| |
70 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
71 | 81 |
| |
72 | 82 |
| |
73 | 83 |
| |
| |||
80 | 90 |
| |
81 | 91 |
| |
82 | 92 |
| |
83 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
84 | 98 |
| |
85 | 99 |
| |
86 | 100 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 |
| |
34 | 39 |
| |
35 | 40 |
| |
36 | 41 |
| |
37 | 42 |
| |
38 | 43 |
| |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 |
| |
40 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
41 | 61 |
| |
42 | 62 |
| |
43 | 63 |
| |
| |||
47 | 67 |
| |
48 | 68 |
| |
49 | 69 |
| |
50 |
| - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
51 | 87 |
| |
52 | 88 |
| |
53 | 89 |
| |
| |||
87 | 123 |
| |
88 | 124 |
| |
89 | 125 |
| |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
90 | 131 |
| |
91 | 132 |
| |
92 | 133 |
| |
| |||
95 | 136 |
| |
96 | 137 |
| |
97 | 138 |
| |
98 |
| - | |
| 139 | + | |
99 | 140 |
| |
100 | 141 |
| |
101 | 142 |
| |
|
0 commit comments
Comments
(0)