On May 13, 2017 8:44:22 PM PDT, Robert Haas <robertmh...@gmail.com> wrote:
>On Sat, May 13, 2017 at 7:08 PM, Andres Freund <and...@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 member individually, rather than hashing 
the entire struct at once.  And for each member you'll have to use a type 
specific hash function...

Andres
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to