[PERFORM] Null integer columns

2005-01-09 Thread Jeffrey Tenny
I have an integer column that is not needed for some rows in the table (whether it is necessary is a factor of other row attributes, and it isn't worth putting in a separate table). What are the performance tradeoffs (storage space, query speed) of using NULL versus a sentinel integer value? No

Re: [PERFORM] Null integer columns

2005-01-08 Thread Tom Lane
Jeffrey Tenny <[EMAIL PROTECTED]> writes: > What are the performance tradeoffs (storage space, query speed) of using > a NULL enabled column versus a NOT-NULL column with a sentinel integer > value? > Not that it matters, but in the event where the column values matter, > the numberic value is a

[PERFORM] Null integer columns

2005-01-08 Thread Jeffrey Tenny
I have an integer column that is not needed for some rows in the table (whether it is necessary is a factor of other row attributes, and it isn't worth putting in a separate table). What are the performance tradeoffs (storage space, query speed) of using a NULL enabled column versus a NOT-NULL col