forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9619fdc
committed
Prevent parser from believing that views have system columns.
Views should not have any pg_attribute entries for system columns.However, we forgot to remove such entries when converting a table to aview. This could lead to crashes later on, if someone attempted toreference such a column, as reported by Kohei KaiGai.This problem is corrected properly in HEAD (by removing the pg_attributeentries during conversion), but in the back branches we need to defendagainst existing mis-converted views. This fix costs us an extra syscachelookup per system column reference, which is annoying but probably notreally measurable in the big scheme of things.1 parent586250c commit9619fdc
File tree
3 files changed
+46
-2
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+46
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
505 | 511 |
| |
506 | 512 |
| |
507 |
| - | |
| 513 | + | |
| 514 | + | |
508 | 515 |
| |
509 | 516 |
| |
510 | 517 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1452 | 1452 |
| |
1453 | 1453 |
| |
1454 | 1454 |
| |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1455 | 1477 |
| |
1456 | 1478 |
| |
1457 | 1479 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
859 | 859 |
| |
860 | 860 |
| |
861 | 861 |
| |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
862 | 877 |
| |
863 | 878 |
| |
864 | 879 |
| |
|
0 commit comments
Comments
(0)