Assuming PostgreSQL is running on a 64 bit server, what is the performance difference between an int4 (32 bit) and int8 (64 bit) column? The manual states that int4 is more efficient than int8, but if the underlying server is 64 bit, is there a practical performance difference (in terms of (1) cpu, (2) memory and (3) storage)?
Assuming PostgreSQL is running on a 64 bit server, what is the performance difference
Share
Put bluntly:
64 bits is twice as large as 32 bits.
64 bits is twice as large as 32 bits.
64 bits is twice as large as 32 bits.
I recall a thread in wp-hackers that did a few benchmarks. Create a table, fill in a million rows. Then find, add, group, join, etc. I don’t recall the specifics, but it was indeed slower to be using int8 than int4.