- Notifications
You must be signed in to change notification settings - Fork5
Commit8e14408
committed
Make equalTupleDescs() compare attlen/attbyval/attalign rather than
assuming comparison of atttypid is sufficient. In a dropped columnatttypid will be 0, and we'd better check the physical-storage datato make sure the tupdescs are physically compatible.I do not believe there is a real risk before 8.0, since before thatwe only used this routine to compare successive states of the tupdescfor a particular relation. But 8.0's typcache.c might be comparingarbitrary tupdescs so we'd better play it safer.1 parent0453a99 commit8e14408
1 file changed
+16
-5
lines changedLines changed: 16 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
281 | 286 |
| |
282 | 287 |
| |
283 | 288 |
| |
284 | 289 |
| |
285 | 290 |
| |
286 | 291 |
| |
287 | 292 |
| |
| 293 | + | |
| 294 | + | |
288 | 295 |
| |
289 | 296 |
| |
290 | 297 |
| |
291 | 298 |
| |
| 299 | + | |
| 300 | + | |
292 | 301 |
| |
293 | 302 |
| |
| 303 | + | |
| 304 | + | |
294 | 305 |
| |
295 | 306 |
| |
296 | 307 |
| |
|
0 commit comments
Comments
(0)