forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2259bf6
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 parent1999091 commit2259bf6
2 files changed
+90
-41
lines changedLines changed: 37 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4711 | 4711 |
| |
4712 | 4712 |
| |
4713 | 4713 |
| |
4714 |
| - | |
4715 |
| - | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
4716 | 4719 |
| |
4717 | 4720 |
| |
4718 | 4721 |
| |
| |||
4746 | 4749 |
| |
4747 | 4750 |
| |
4748 | 4751 |
| |
4749 |
| - | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
4750 | 4760 |
| |
4751 | 4761 |
| |
4752 | 4762 |
| |
4753 | 4763 |
| |
4754 |
| - | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
4755 | 4767 |
| |
4756 | 4768 |
| |
4757 | 4769 |
| |
| |||
4785 | 4797 |
| |
4786 | 4798 |
| |
4787 | 4799 |
| |
4788 |
| - | |
| 4800 | + | |
4789 | 4801 |
| |
4790 | 4802 |
| |
4791 | 4803 |
| |
4792 |
| - | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
4793 | 4818 |
| |
4794 | 4819 |
| |
4795 | 4820 |
| |
| |||
10966 | 10991 |
| |
10967 | 10992 |
| |
10968 | 10993 |
| |
10969 |
| - | |
| 10994 | + | |
| 10995 | + | |
10970 | 10996 |
| |
10971 | 10997 |
| |
10972 | 10998 |
| |
| |||
11075 | 11101 |
| |
11076 | 11102 |
| |
11077 | 11103 |
| |
11078 |
| - | |
| 11104 | + | |
| 11105 | + | |
11079 | 11106 |
| |
11080 | 11107 |
| |
11081 | 11108 |
| |
11082 | 11109 |
| |
11083 | 11110 |
| |
11084 |
| - | |
| 11111 | + | |
| 11112 | + | |
11085 | 11113 |
| |
11086 | 11114 |
| |
11087 | 11115 |
| |
|
Lines changed: 53 additions & 32 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1108 | 1108 |
| |
1109 | 1109 |
| |
1110 | 1110 |
| |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1111 | 1138 |
| |
1112 | 1139 |
| |
1113 | 1140 |
| |
| |||
1856 | 1883 |
| |
1857 | 1884 |
| |
1858 | 1885 |
| |
1859 |
| - | |
1860 |
| - | |
1861 |
| - | |
1862 |
| - | |
1863 |
| - | |
1864 |
| - | |
1865 |
| - | |
1866 |
| - | |
1867 |
| - | |
1868 |
| - | |
1869 |
| - | |
1870 |
| - | |
1871 |
| - | |
1872 |
| - | |
1873 |
| - | |
1874 |
| - | |
1875 |
| - | |
1876 |
| - | |
1877 |
| - | |
1878 |
| - | |
1879 |
| - | |
1880 |
| - | |
1881 |
| - | |
1882 |
| - | |
1883 |
| - | |
1884 |
| - | |
1885 |
| - | |
1886 |
| - | |
1887 |
| - | |
1888 |
| - | |
1889 |
| - | |
1890 |
| - | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
1891 | 1912 |
| |
1892 | 1913 |
| |
1893 | 1914 |
| |
|
0 commit comments
Comments
(0)