From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erwin Brandstetter <brsaweda@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@postgresql.org
Subject: Re: Fast, stable, portable hash function producing 4-byte or 8-byte values?
Date: Wed, 11 Dec 2019 14:20:10 -0500
Message-ID: <24650.1576092010@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGHENJ6GibwodRSmgsQ2tLnXs9HcNeBJ2e2NYtwCB4Pbfqm-ow@mail.gmail.com>
References: <CAGHENJ5MnkKeymEVFO6daga6qzTruG91u9yeuwkBuTZ_xRSPRg@mail.gmail.com>
<67fe6aff570841a0fab4c7b9f5c316b5d54f88c3.camel@cybertec.at>
<CAGHENJ6GibwodRSmgsQ2tLnXs9HcNeBJ2e2NYtwCB4Pbfqm-ow@mail.gmail.com>
Erwin Brandstetter <brsaweda@gmail.com> writes:
> Guess Tom's warning in
> https://www.postgresql.org/message-id/9434.1568839177@sss.pgh.pa.us about
> portability only refers to hashtextextended() and friends not being there
> in Postgres 10 or older.
Well, the other portability issue that is worth considering is that
these functions are only intended to give stable results within a
particular installation; their use for hash indexes does not require
the same results across different platforms. Notably, most of them
give different answers on little-endian and big-endian machines.
That's not necessarily a reason not to use them, but you have to
be careful what you assume about them.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, brsaweda@gmail.com, laurenz.albe@cybertec.at
Subject: Re: Fast, stable, portable hash function producing 4-byte or 8-byte values?
In-Reply-To: <24650.1576092010@sss.pgh.pa.us>
References: <CAGHENJ5MnkKeymEVFO6daga6qzTruG91u9yeuwkBuTZ_xRSPRg@mail.gmail.com> <67fe6aff570841a0fab4c7b9f5c316b5d54f88c3.camel@cybertec.at> <CAGHENJ6GibwodRSmgsQ2tLnXs9HcNeBJ2e2NYtwCB4Pbfqm-ow@mail.gmail.com> <24650.1576092010@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox