- Notifications
You must be signed in to change notification settings - Fork5
Commit3f88672
committed
Use TypeName to represent type names in certain commands
In COMMENT, DROP, SECURITY LABEL, and the new pg_get_object_addressfunction, we were representing types as a list of names, same as otherobjects; but types are special objects that require their ownrepresentation to be totally accurate. In the original COMMENT code wehad a note about fixing it which was lost in the course ofc10575f.Change all those places to use TypeName instead, as suggested by thatcomment.Right now the original coding doesn't cause any bugs, so no backpatch.It is more problematic for proposed future code that operate with objectaddresses from the SQL interface; type details such as array-ness arelost when working with the degraded representation.Thanks to Petr Jelínek and Dimitri Fontaine for offlist help on findinga solution to a shift/reduce grammar conflict.1 parent930fd68 commit3f88672
File tree
4 files changed
+107
-48
lines changed- src
- backend
- catalog
- commands
- parser
- test/regress/sql
4 files changed
+107
-48
lines changedLines changed: 8 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
646 | 646 |
| |
647 | 647 |
| |
648 | 648 |
| |
649 |
| - | |
650 | 649 |
| |
651 | 650 |
| |
652 | 651 |
| |
653 |
| - | |
654 |
| - | |
655 |
| - | |
| 652 | + | |
| 653 | + | |
656 | 654 |
| |
657 | 655 |
| |
658 | 656 |
| |
| |||
1291 | 1289 |
| |
1292 | 1290 |
| |
1293 | 1291 |
| |
1294 |
| - | |
1295 |
| - | |
| 1292 | + | |
1296 | 1293 |
| |
1297 | 1294 |
| |
1298 | 1295 |
| |
1299 | 1296 |
| |
1300 | 1297 |
| |
1301 |
| - | |
| 1298 | + | |
1302 | 1299 |
| |
1303 | 1300 |
| |
1304 | 1301 |
| |
| |||
1428 | 1425 |
| |
1429 | 1426 |
| |
1430 | 1427 |
| |
1431 |
| - | |
1432 |
| - | |
1433 |
| - | |
1434 |
| - | |
1435 |
| - | |
1436 |
| - | |
1437 |
| - | |
1438 |
| - | |
1439 |
| - | |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 |
| - | |
1445 |
| - | |
1446 |
| - | |
1447 |
| - | |
1448 |
| - | |
1449 |
| - | |
1450 |
| - | |
1451 |
| - | |
| 1428 | + | |
| 1429 | + | |
1452 | 1430 |
| |
1453 | 1431 |
| |
1454 | 1432 |
| |
| |||
1533 | 1511 |
| |
1534 | 1512 |
| |
1535 | 1513 |
| |
1536 |
| - | |
1537 |
| - | |
1538 |
| - | |
1539 |
| - | |
1540 |
| - | |
1541 |
| - | |
1542 | 1514 |
| |
1543 | 1515 |
| |
1544 | 1516 |
| |
1545 | 1517 |
| |
1546 |
| - | |
| 1518 | + | |
1547 | 1519 |
| |
| 1520 | + | |
1548 | 1521 |
| |
1549 | 1522 |
| |
1550 | 1523 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
268 | 267 |
| |
269 |
| - | |
270 |
| - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
271 | 275 |
| |
272 | 276 |
| |
273 | 277 |
| |
|
Lines changed: 91 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
354 |
| - | |
| 354 | + | |
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
| |||
5471 | 5471 |
| |
5472 | 5472 |
| |
5473 | 5473 |
| |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
| 5487 | + | |
| 5488 | + | |
| 5489 | + | |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
| 5493 | + | |
| 5494 | + | |
| 5495 | + | |
| 5496 | + | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
| 5508 | + | |
| 5509 | + | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
5474 | 5514 |
| |
5475 | 5515 |
| |
5476 | 5516 |
| |
| |||
5503 | 5543 |
| |
5504 | 5544 |
| |
5505 | 5545 |
| |
5506 |
| - | |
5507 |
| - | |
5508 | 5546 |
| |
5509 | 5547 |
| |
5510 | 5548 |
| |
| |||
5530 | 5568 |
| |
5531 | 5569 |
| |
5532 | 5570 |
| |
| 5571 | + | |
| 5572 | + | |
| 5573 | + | |
5533 | 5574 |
| |
5534 | 5575 |
| |
5535 | 5576 |
| |
| |||
5594 | 5635 |
| |
5595 | 5636 |
| |
5596 | 5637 |
| |
| 5638 | + | |
| 5639 | + | |
| 5640 | + | |
| 5641 | + | |
| 5642 | + | |
| 5643 | + | |
| 5644 | + | |
| 5645 | + | |
| 5646 | + | |
| 5647 | + | |
| 5648 | + | |
| 5649 | + | |
| 5650 | + | |
| 5651 | + | |
| 5652 | + | |
| 5653 | + | |
| 5654 | + | |
| 5655 | + | |
5597 | 5656 |
| |
5598 | 5657 |
| |
5599 | 5658 |
| |
| |||
5634 | 5693 |
| |
5635 | 5694 |
| |
5636 | 5695 |
| |
5637 |
| - | |
5638 |
| - | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
5639 | 5703 |
| |
5640 | 5704 |
| |
5641 | 5705 |
| |
| |||
5730 | 5794 |
| |
5731 | 5795 |
| |
5732 | 5796 |
| |
5733 |
| - | |
5734 |
| - | |
5735 | 5797 |
| |
5736 | 5798 |
| |
5737 | 5799 |
| |
| |||
5776 | 5838 |
| |
5777 | 5839 |
| |
5778 | 5840 |
| |
| 5841 | + | |
| 5842 | + | |
| 5843 | + | |
| 5844 | + | |
| 5845 | + | |
| 5846 | + | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
5779 | 5863 |
| |
5780 | 5864 |
| |
5781 | 5865 |
| |
| |||
5834 | 5918 |
| |
5835 | 5919 |
| |
5836 | 5920 |
| |
5837 |
| - | |
5838 | 5921 |
| |
5839 | 5922 |
| |
5840 |
| - | |
5841 | 5923 |
| |
5842 | 5924 |
| |
5843 | 5925 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
135 |
| - | |
| 135 | + | |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
|
0 commit comments
Comments
(0)