26

Never be afraid to ask questions and look stupid.
Those who ask questions become smarter.
Those who don't - remain stupid.

Why does bit(128) in PostgreSQL take up 21 bytes of storage?

Comments
  • 3
    Well probably because storing the bits somewhere without remembering where isn't enough because you might want to find them again so you need to save the location.
  • 2
    1 Byte for the int, 20 bytes for asking a stupid question on devRant. 😀
  • 1
    @codewing the location is in the table.
Add Comment