forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4528768
committed
Remove now-dead code in StoreAttrDefault().
StoreAttrDefault() is no longer responsible for fillingattmissingval, so remove the code for that.Get rid of RawColumnDefault.missingMode, too, as we no longerneed that to pass information around.While here, clean up some sloppy coding in StoreAttrDefault(),such as failure to use XXXGetDatum macros. These aren't bugsbut they're not good code either.Reported-by: jian he <jian.universality@gmail.com>Author: jian he <jian.universality@gmail.com>Author: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CACJufxHFssPvkP1we7WMhPD_1kwgbG52o=kQgL+TnVoX5LOyCQ@mail.gmail.com1 parent95f6506 commit4528768
File tree
5 files changed
+11
-83
lines changed- src
- backend
- catalog
- commands
- include/catalog
5 files changed
+11
-83
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2320 | 2320 |
| |
2321 | 2321 |
| |
2322 | 2322 |
| |
2323 |
| - | |
| 2323 | + | |
2324 | 2324 |
| |
2325 | 2325 |
| |
2326 | 2326 |
| |
| |||
2447 | 2447 |
| |
2448 | 2448 |
| |
2449 | 2449 |
| |
2450 |
| - | |
2451 |
| - | |
| 2450 | + | |
2452 | 2451 |
| |
2453 | 2452 |
| |
2454 | 2453 |
| |
|
Lines changed: 6 additions & 71 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 | 17 |
| |
19 | 18 |
| |
20 |
| - | |
21 | 19 |
| |
22 | 20 |
| |
23 | 21 |
| |
24 | 22 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 | 23 |
| |
29 | 24 |
| |
30 | 25 |
| |
| |||
35 | 30 |
| |
36 | 31 |
| |
37 | 32 |
| |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 | 33 |
| |
45 | 34 |
| |
46 | 35 |
| |
47 |
| - | |
| 36 | + | |
48 | 37 |
| |
49 | 38 |
| |
50 | 39 |
| |
51 | 40 |
| |
52 |
| - | |
53 |
| - | |
| 41 | + | |
| 42 | + | |
54 | 43 |
| |
55 | 44 |
| |
56 | 45 |
| |
| |||
72 | 61 |
| |
73 | 62 |
| |
74 | 63 |
| |
75 |
| - | |
76 |
| - | |
| 64 | + | |
| 65 | + | |
77 | 66 |
| |
78 | 67 |
| |
79 | 68 |
| |
| |||
105 | 94 |
| |
106 | 95 |
| |
107 | 96 |
| |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 | 97 |
| |
115 | 98 |
| |
116 | 99 |
| |
117 |
| - | |
118 |
| - | |
119 | 100 |
| |
120 |
| - | |
| 101 | + | |
121 | 102 |
| |
122 | 103 |
| |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 | 104 |
| |
167 | 105 |
| |
168 | 106 |
| |
169 | 107 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 | 108 |
| |
174 | 109 |
| |
175 | 110 |
| |
|
Lines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
967 | 967 |
| |
968 | 968 |
| |
969 | 969 |
| |
970 |
| - | |
971 | 970 |
| |
972 | 971 |
| |
973 | 972 |
| |
| |||
7321 | 7320 |
| |
7322 | 7321 |
| |
7323 | 7322 |
| |
7324 |
| - | |
7325 | 7323 |
| |
7326 | 7324 |
| |
7327 | 7325 |
| |
| |||
8077 | 8075 |
| |
8078 | 8076 |
| |
8079 | 8077 |
| |
8080 |
| - | |
8081 | 8078 |
| |
8082 | 8079 |
| |
8083 | 8080 |
| |
| |||
8115 | 8112 |
| |
8116 | 8113 |
| |
8117 | 8114 |
| |
8118 |
| - | |
| 8115 | + | |
8119 | 8116 |
| |
8120 | 8117 |
| |
8121 | 8118 |
| |
| |||
8578 | 8575 |
| |
8579 | 8576 |
| |
8580 | 8577 |
| |
8581 |
| - | |
8582 | 8578 |
| |
8583 | 8579 |
| |
8584 | 8580 |
| |
| |||
14130 | 14126 |
| |
14131 | 14127 |
| |
14132 | 14128 |
| |
14133 |
| - | |
| 14129 | + | |
14134 | 14130 |
| |
14135 | 14131 |
| |
14136 | 14132 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
| 60 | + | |
62 | 61 |
| |
63 | 62 |
| |
64 | 63 |
| |
|
0 commit comments
Comments
(0)