On May 13, 2017 8:44:22 PM PDT, Robert Haas <robertmhaas@gmail.com> wrote:
>On Sat, May 13, 2017 at 7:08 PM, Andres Freund <andres@anarazel.de>
>wrote:
>> I seriously doubt that's true. A lot of more complex types have
>> internal alignment padding and such.
>
>True, but I believe we require those padding bytes to be zero. If we
>didn't, then hstore_hash would be broken already.
It'll be differently sized on different platforms. So everyone will have to write hash functions that look at each
memberindividually, rather than hashing the entire struct at once. And for each member you'll have to use a type
specifichash function...
Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.