forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8d8bf12
committed
Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag
and rely exclusively on the SQL type system to tell the difference betweenthe types. Prevent creation of invalid CIDR values via casting from INETor set_masklen() --- both of these operations now silently zero any bitsto the right of the netmask. Remove duplicate CIDR comparison operators,letting the type rely on the INET operators instead.1 parent5997386 commit8d8bf12
File tree
12 files changed
+269
-142
lines changed- doc/src/sgml
- src
- backend
- optimizer/path
- utils/adt
- include
- catalog
- utils
- test/regress
- expected
- sql
12 files changed
+269
-142
lines changedLines changed: 32 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
6797 | 6797 |
| |
6798 | 6798 |
| |
6799 | 6799 |
| |
6800 |
| - | |
6801 |
| - | |
6802 |
| - | |
| 6800 | + | |
6803 | 6801 |
| |
6804 | 6802 |
| |
6805 | 6803 |
| |
| |||
6843 | 6841 |
| |
6844 | 6842 |
| |
6845 | 6843 |
| |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
| 6849 | + | |
| 6850 | + | |
6846 | 6851 |
| |
6847 | 6852 |
| |
6848 | 6853 |
| |
| |||
6875 | 6880 |
| |
6876 | 6881 |
| |
6877 | 6882 |
| |
| 6883 | + | |
| 6884 | + | |
| 6885 | + | |
| 6886 | + | |
| 6887 | + | |
| 6888 | + | |
| 6889 | + | |
6878 | 6890 |
| |
6879 | 6891 |
| |
6880 | 6892 |
| |
| |||
6890 | 6902 |
| |
6891 | 6903 |
| |
6892 | 6904 |
| |
| 6905 | + | |
| 6906 | + | |
| 6907 | + | |
| 6908 | + | |
| 6909 | + | |
| 6910 | + | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
| 6915 | + | |
| 6916 | + | |
| 6917 | + | |
| 6918 | + | |
| 6919 | + | |
| 6920 | + | |
6893 | 6921 |
| |
6894 | 6922 |
| |
6895 | 6923 |
| |
|
Lines changed: 3 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
2024 | 2024 |
| |
2025 | 2025 |
| |
2026 | 2026 |
| |
2027 |
| - | |
2028 |
| - | |
2029 | 2027 |
| |
2030 | 2028 |
| |
2031 | 2029 |
| |
| |||
2087 | 2085 |
| |
2088 | 2086 |
| |
2089 | 2087 |
| |
2090 |
| - | |
2091 |
| - | |
2092 |
| - | |
2093 |
| - | |
2094 |
| - | |
2095 |
| - | |
| 2088 | + | |
| 2089 | + | |
2096 | 2090 |
| |
2097 | 2091 |
| |
2098 | 2092 |
| |
| |||
2317 | 2311 |
| |
2318 | 2312 |
| |
2319 | 2313 |
| |
2320 |
| - | |
2321 |
| - | |
2322 | 2314 |
| |
2323 | 2315 |
| |
2324 | 2316 |
| |
| |||
2681 | 2673 |
| |
2682 | 2674 |
| |
2683 | 2675 |
| |
2684 |
| - | |
2685 |
| - | |
2686 |
| - | |
2687 |
| - | |
2688 |
| - | |
2689 |
| - | |
2690 |
| - | |
2691 |
| - | |
2692 | 2676 |
| |
2693 | 2677 |
| |
2694 | 2678 |
| |
|
0 commit comments
Comments
(0)