Noah Misch
782be0f712
Dissociate btequalimage() from interval_ops, ending its deduplication.
...
Under interval_ops, some equal values are distinguishable. One such
pair is '24:00:00' and '1 day'. With that being so, btequalimage()
breaches the documented contract for the "equalimage" btree support
function. This can cause incorrect results from index-only scans.
Users should REINDEX any btree indexes having interval-type columns.
After updating, pg_amcheck will report an error for almost all such
indexes. This fix makes interval_ops simply omit the support function,
like numeric_ops does. Back-pack to v13, where btequalimage() first
appeared. In back branches, for the benefit of old catalog content,
btequalimage() code will return false for type "interval". Going
forward, back-branch initdb will include the catalog change.
Reviewed by Peter Geoghegan.
Discussion: https://postgr.es/m/20231011013317.22.nmisch@google.com
2023-10-14 16:33:54 -07:00
..
2019-03-23 00:19:34 +01:00
2022-09-28 17:14:53 +02:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-09-20 12:04:37 -04:00
2023-05-04 11:48:23 -04:00
2023-03-26 13:41:06 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2021-12-01 16:10:56 +01:00
2022-08-02 10:29:35 -04:00
2022-01-11 09:55:16 +09:00
2022-04-02 15:22:25 +07:00
2023-02-20 16:55:59 -05:00
2023-10-14 16:33:54 -07:00
2022-05-12 15:17:30 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-09-01 17:10:42 -04:00
2023-03-14 19:17:31 -04:00
2022-10-18 10:22:40 +09:00
2022-09-12 12:59:06 +02:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-10-18 10:22:40 +09:00
2019-08-18 19:27:23 -04:00
2019-08-18 19:27:23 -04:00
2022-04-08 10:34:36 +12:00
2023-01-15 17:32:09 -05:00
2022-09-01 17:10:42 -04:00
2022-12-12 16:17:49 -05:00
2022-12-12 16:17:49 -05:00
2022-09-01 17:10:42 -04:00
2022-09-01 17:10:42 -04:00
2022-01-07 19:04:57 -05:00
2023-03-13 15:19:00 -04:00
2023-06-12 10:54:28 -04:00
2022-09-20 12:04:37 -04:00
2022-05-13 07:17:29 +02:00
2023-08-02 01:40:56 +12:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-08-24 13:02:19 -04:00
2022-05-12 15:17:30 -04:00
2022-04-12 14:45:23 -04:00
2022-01-07 19:04:57 -05:00
2022-04-02 15:22:25 +07:00
2022-03-24 12:42:30 +09:00
2022-10-18 10:22:40 +09:00
2022-10-18 10:22:40 +09:00
2023-04-24 11:16:17 +02:00
2022-05-12 15:17:30 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2023-03-16 14:48:45 -07:00
2023-02-03 11:11:59 +00:00
2022-02-15 07:44:26 +01:00
2023-01-15 17:32:09 -05:00
2023-03-01 11:30:17 -05:00
2022-04-04 22:24:59 +12:00
2022-01-07 19:04:57 -05:00
2023-03-17 12:07:47 -07:00
2022-01-07 19:04:57 -05:00
2022-01-17 13:40:27 -05:00
2023-08-21 13:33:08 +09:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-05-12 15:17:30 -04:00
2022-07-12 16:30:36 -04:00
2022-03-30 17:53:54 +02:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-05-12 15:17:30 -04:00
2022-01-07 19:04:57 -05:00
2023-09-15 17:01:26 -04:00
2022-11-22 14:40:44 -05:00
2022-03-03 20:04:35 -05:00
2022-05-12 15:17:30 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2023-09-04 14:55:51 +09:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-04-11 20:49:41 +12:00
2022-03-15 11:29:35 +09:00
2022-11-21 17:07:07 -05:00
2022-01-07 19:04:57 -05:00
2023-10-01 13:17:06 -04:00
2022-05-12 15:17:30 -04:00
2022-01-07 19:04:57 -05:00
2022-12-01 11:55:59 -08:00
2022-10-18 10:22:40 +09:00
2022-01-07 19:04:57 -05:00
2022-04-08 10:34:36 +12:00
2022-06-27 08:21:08 +03:00
2022-02-10 12:33:41 +09:00
2023-09-18 14:27:47 -04:00