- Notifications
You must be signed in to change notification settings - Fork28
Commit1c2d408
committed
Rewrite interval_hash() so that the hashcodes are equal for values that
interval_eq() considers equal. I'm not sure how that fundamental requirementescaped us through multiple revisions of this hash function, but there it is;it's been wrong since interval_hash was first written for PG 7.1.Per bug #4748 from Roman Kononov.Backpatch to all supported releases.This patch changes the contents of hash indexes for interval columns. That'sno particular problem for PG 8.4, since we've broken on-disk compatibilityof hash indexes already; but it will require a migration warning note inthe next minor releases of all existing branches: "if you have any hashindexes on columns of type interval, REINDEX them after updating".1 parent1c855f0 commit1c2d408
File tree
3 files changed
+46
-34
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+46
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
2044 | | - | |
2045 | | - | |
| 2044 | + | |
| 2045 | + | |
2046 | 2046 | | |
2047 | | - | |
2048 | | - | |
| 2047 | + | |
2049 | 2048 | | |
2050 | | - | |
2051 | | - | |
| 2049 | + | |
2052 | 2050 | | |
2053 | 2051 | | |
2054 | | - | |
2055 | | - | |
2056 | | - | |
2057 | | - | |
| 2052 | + | |
| 2053 | + | |
2058 | 2054 | | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
| 2055 | + | |
| 2056 | + | |
2063 | 2057 | | |
2064 | 2058 | | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
2065 | 2068 | | |
2066 | 2069 | | |
2067 | 2070 | | |
| |||
2128 | 2131 | | |
2129 | 2132 | | |
2130 | 2133 | | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2131 | 2141 | | |
2132 | 2142 | | |
2133 | 2143 | | |
2134 | | - | |
2135 | | - | |
2136 | | - | |
| 2144 | + | |
| 2145 | + | |
2137 | 2146 | | |
2138 | | - | |
2139 | | - | |
2140 | | - | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | 2147 | | |
2145 | | - | |
2146 | | - | |
| 2148 | + | |
2147 | 2149 | | |
2148 | | - | |
2149 | | - | |
| 2150 | + | |
2150 | 2151 | | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | 2152 | | |
2158 | 2153 | | |
2159 | 2154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
0 commit comments
Comments
(0)