by p49k · 4y ago · 0 comments
Postgres uses a fixed-size null bitmap and variable-size rows, so a NULL value takes one bit in the bitmap (and additional nullable columns may require a wider bitmap), but they are skipped in the row itself.
So for Postgres it is generally true that storing NULLs is very cheap in most cases.