Null integer columns

Поиск
Список
Период
Сортировка
От Jeffrey Tenny
Тема Null integer columns
Дата
Msg-id 41E04B74.8050609@comcast.net
обсуждение исходный текст
Ответы Re: Null integer columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
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 column with a sentinel integer
value?

Not that it matters, but in the event where the column values matter,
the numberic value is a foreign key.  Advice on that welcome too.

Thanks!


В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: TEXT field and Postgresql Perfomance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Null integer columns