Conversation

Replying to and
1/ Because alignment of columns in the on-disk tuple. Sometimes the "logical" ordering leaves gaps so the table uses more space than needed. Not an issue in most cases, but sometimes it can be (table mixing columns in unfortunate ways).
4
2
I think this is bad in real-life tables more often than people realize. Adding a boolean as column 11, with no other booleans next to it, means taking a full 4 bytes of space for it. But ... I don't want to have manual column ordering. I want it to be automatic.
1
2
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
This patch existed at some point in the past. I think maybe was working on it. It definitely was a scary patch for bugs since it meant every site needed to be very careful to use the "right" column number and if it used the wrong one it would mostly work.
3
I think the direction to head was to actually use type safety or some equivalent tool to enforce that the two indexes could only be used in the right places as much as possible.
1