forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit542975a
committed
Fix dumping of casts and transforms using built-in functions
In pg_dump.c dumpCast() and dumpTransform(), we would happily ignore thecast or transform if it happened to use a built-in function because weweren't including the information about built-in functions when queryingpg_proc from getFuncs().Modify the query in getFuncs() to also gather information aboutfunctions which are used by user-defined casts and transforms (where"user-defined" means "has an OID >= FirstNormalObjectId"). This alsoadds to the TAP regression tests for 9.6 and master to cover thesetypes of objects.Back-patch all the way for casts, back to 9.5 for transforms.Discussion:https://www.postgresql.org/message-id/flat/20160504183952.GE10850%40tamriel.snowman.net1 parente45319b commit542975a
2 files changed
+88
-40
lines changedLines changed: 37 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4978 | 4978 |
| |
4979 | 4979 |
| |
4980 | 4980 |
| |
4981 |
| - | |
4982 |
| - | |
| 4981 | + | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
4983 | 4986 |
| |
4984 | 4987 |
| |
4985 | 4988 |
| |
| |||
5013 | 5016 |
| |
5014 | 5017 |
| |
5015 | 5018 |
| |
5016 |
| - | |
| 5019 | + | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
5017 | 5027 |
| |
5018 | 5028 |
| |
5019 | 5029 |
| |
5020 | 5030 |
| |
5021 |
| - | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
5022 | 5034 |
| |
5023 | 5035 |
| |
5024 | 5036 |
| |
| |||
5052 | 5064 |
| |
5053 | 5065 |
| |
5054 | 5066 |
| |
5055 |
| - | |
| 5067 | + | |
5056 | 5068 |
| |
5057 | 5069 |
| |
5058 | 5070 |
| |
5059 |
| - | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
5060 | 5085 |
| |
5061 | 5086 |
| |
5062 | 5087 |
| |
| |||
11871 | 11896 |
| |
11872 | 11897 |
| |
11873 | 11898 |
| |
11874 |
| - | |
| 11899 | + | |
| 11900 | + | |
11875 | 11901 |
| |
11876 | 11902 |
| |
11877 | 11903 |
| |
| |||
11980 | 12006 |
| |
11981 | 12007 |
| |
11982 | 12008 |
| |
11983 |
| - | |
| 12009 | + | |
| 12010 | + | |
11984 | 12011 |
| |
11985 | 12012 |
| |
11986 | 12013 |
| |
11987 | 12014 |
| |
11988 | 12015 |
| |
11989 |
| - | |
| 12016 | + | |
| 12017 | + | |
11990 | 12018 |
| |
11991 | 12019 |
| |
11992 | 12020 |
| |
|
Lines changed: 51 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
913 | 913 |
| |
914 | 914 |
| |
915 | 915 |
| |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
916 | 942 |
| |
917 | 943 |
| |
918 | 944 |
| |
| |||
1515 | 1541 |
| |
1516 | 1542 |
| |
1517 | 1543 |
| |
1518 |
| - | |
1519 |
| - | |
1520 |
| - | |
1521 |
| - | |
1522 |
| - | |
1523 |
| - | |
1524 |
| - | |
1525 |
| - | |
1526 |
| - | |
1527 |
| - | |
1528 |
| - | |
1529 |
| - | |
1530 |
| - | |
1531 |
| - | |
1532 |
| - | |
1533 |
| - | |
1534 |
| - | |
1535 |
| - | |
1536 |
| - | |
1537 |
| - | |
1538 |
| - | |
1539 |
| - | |
1540 |
| - | |
1541 |
| - | |
1542 |
| - | |
1543 |
| - | |
1544 |
| - | |
1545 |
| - | |
1546 |
| - | |
1547 |
| - | |
1548 |
| - | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1549 | 1569 |
| |
1550 | 1570 |
| |
1551 | 1571 |
| |
|
0 commit comments
Comments
(0)