forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3027e1
committed
Allow psql's \df and \do commands to specify argument types.
When dealing with overloaded function or operator names, havingto look through a long list of matches is tedious. Let's extendthese commands to allow specification of (input) argument typesto let such results be trimmed down. Each additional argumentis treated the same as the pattern argument of \dT and matchedagainst the appropriate argument's type name.While at it, fix \dT (and these new options) to recognize theusual notation of "foo[]" for "the array type over foo", andto handle the special abbreviations allowed by the backendgrammar, such as "int" for "integer".Greg Sabino Mullane, revised rather significantly by meDiscussion:https://postgr.es/m/CAKAnmmLF9Hhu02N+s7uAyLc5J1xZReg72HQUoiKhNiJV3_jACQ@mail.gmail.com1 parentf57a2f5 commita3027e1
File tree
8 files changed
+374
-30
lines changed- doc/src/sgml/ref
- src
- bin/psql
- fe_utils
- test/regress
- expected
- sql
8 files changed
+374
-30
lines changedLines changed: 30 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1567 | 1567 |
| |
1568 | 1568 |
| |
1569 | 1569 |
| |
1570 |
| - | |
| 1570 | + | |
1571 | 1571 |
| |
1572 | 1572 |
| |
1573 | 1573 |
| |
| |||
1580 | 1580 |
| |
1581 | 1581 |
| |
1582 | 1582 |
| |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1583 | 1588 |
| |
1584 | 1589 |
| |
1585 | 1590 |
| |
| |||
1589 | 1594 |
| |
1590 | 1595 |
| |
1591 | 1596 |
| |
1592 |
| - | |
1593 |
| - | |
1594 |
| - | |
1595 |
| - | |
1596 |
| - | |
1597 |
| - | |
1598 |
| - | |
1599 |
| - | |
1600 | 1597 |
| |
1601 | 1598 |
| |
1602 | 1599 |
| |
| |||
1721 | 1718 |
| |
1722 | 1719 |
| |
1723 | 1720 |
| |
1724 |
| - | |
| 1721 | + | |
1725 | 1722 |
| |
1726 | 1723 |
| |
1727 | 1724 |
| |
1728 | 1725 |
| |
1729 | 1726 |
| |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1730 | 1734 |
| |
1731 | 1735 |
| |
1732 | 1736 |
| |
| |||
4986 | 4990 |
| |
4987 | 4991 |
| |
4988 | 4992 |
| |
| 4993 | + | |
| 4994 | + | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
4989 | 5009 |
| |
4990 | 5010 |
| |
4991 | 5011 |
| |
|
Lines changed: 46 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 |
| |
76 | 79 |
| |
77 | 80 |
| |
| |||
790 | 793 |
| |
791 | 794 |
| |
792 | 795 |
| |
793 |
| - | |
| 796 | + | |
| 797 | + | |
794 | 798 |
| |
795 | 799 |
| |
796 | 800 |
| |
| |||
811 | 815 |
| |
812 | 816 |
| |
813 | 817 |
| |
814 |
| - | |
| 818 | + | |
| 819 | + | |
815 | 820 |
| |
816 | 821 |
| |
817 | 822 |
| |
| |||
951 | 956 |
| |
952 | 957 |
| |
953 | 958 |
| |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
954 | 998 |
| |
955 | 999 |
| |
956 | 1000 |
| |
|
0 commit comments
Comments
(0)