forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit47c6772
committed
Clean up tupdesc.c for recent changes.
TupleDescCopy needs to have the same effects as CreateTupleDescCopy inthat, since it doesn't copy constraints, it should clear the per-attributefields associated with them. Oversight in commitcc5f813.Since TupleDescCopy has already established the presumption that itcan just flat-copy the entire attribute array in one go, propagatethat approach into CreateTupleDescCopy and CreateTupleDescCopyConstr.(I'm suspicious that this would lead to valgrind complaints if wehad any trailing padding in the struct, but we do not, and anywayfixing that seems like a job for a separate commit.)Add some better comments.Thomas Munro, reviewed by Vik Fearing, some additional hacking by meDiscussion:https://postgr.es/m/CAEepm=0NvOGZ8B6GbQyQe2C_c2m3LKJ9w=8OMBaYRLgZ_Gw6Nw@mail.gmail.com1 parentbab2969 commit47c6772
1 file changed
+45
-7
lines changedLines changed: 45 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 |
| |
56 | 64 |
| |
57 | 65 |
| |
| |||
106 | 114 |
| |
107 | 115 |
| |
108 | 116 |
| |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
109 | 126 |
| |
110 | 127 |
| |
111 | 128 |
| |
112 | 129 |
| |
113 |
| - | |
114 | 130 |
| |
115 | 131 |
| |
116 | 132 |
| |
117 | 133 |
| |
118 | 134 |
| |
| 135 | + | |
119 | 136 |
| |
120 | 137 |
| |
121 | 138 |
| |
| |||
136 | 153 |
| |
137 | 154 |
| |
138 | 155 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
145 | 160 |
| |
| 161 | + | |
146 | 162 |
| |
147 | 163 |
| |
148 | 164 |
| |
| |||
178 | 194 |
| |
179 | 195 |
| |
180 | 196 |
| |
| 197 | + | |
181 | 198 |
| |
182 | 199 |
| |
183 | 200 |
| |
| |||
195 | 212 |
| |
196 | 213 |
| |
197 | 214 |
| |
| 215 | + | |
| 216 | + | |
| 217 | + | |
198 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
199 | 232 |
| |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
200 | 238 |
| |
201 | 239 |
| |
202 | 240 |
| |
|
0 commit comments
Comments
(0)