From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Rewrite interval_hash() so that the hashcodes are equal for |
Date: | 2009-04-04 04:54:08 |
Message-ID: | 20090404045408.00B63754AE1@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Rewrite interval_hash() so that the hashcodes are equal for values that
interval_eq() considers equal. I'm not sure how that fundamental requirement
escaped 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's
no particular problem for PG 8.4, since we've broken on-disk compatibility
of hash indexes already; but it will require a migration warning note in
the next minor releases of all existing branches: "if you have any hash
indexes on columns of type interval, REINDEX them after updating".
Tags:
----
REL7_4_STABLE
Modified Files:
--------------
pgsql/src/backend/utils/adt:
timestamp.c (r1.96.2.3 -> r1.96.2.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/timestamp.c?r1=1.96.2.3&r2=1.96.2.4)
pgsql/src/test/regress/expected:
interval.out (r1.9.2.1 -> r1.9.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/interval.out?r1=1.9.2.1&r2=1.9.2.2)
pgsql/src/test/regress/sql:
interval.sql (r1.5.4.1 -> r1.5.4.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/interval.sql?r1=1.5.4.1&r2=1.5.4.2)
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2009-04-04 07:55:55 | Re: pgsql: Make directory name comparisons on Win32 case insensitive. |
Previous Message | Tom Lane | 2009-04-04 04:53:58 | pgsql: Rewrite interval_hash() so that the hashcodes are equal for |