Re: Duda sobre campo null!!!

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Lazaro Ruben Garcia Martinez <lgarciam(at)estudiantes(dot)uci(dot)cu>
Cc: Digimer <linux(at)alteeve(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Duda sobre campo null!!!
Date: 2010-08-17 02:54:42
Message-ID: AANLkTim8NPcULaYOu82tQu2YCOpF_Mjs_1A0+gM0BURo@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Not really. NULLs are stored in a bit field. Each null takes up one
bit in this field, and as you add more nulls, you get more bytes each
time you go over a multiple of 8.

Also, NULLS can be indexed in postgresql now. Older versions could
not index nulls (actually they got indexed, but the entries couldn't
be referenced properly).

2010/8/16 Lazaro Ruben Garcia Martinez <lgarciam(at)estudiantes(dot)uci(dot)cu>:
> Hello everyone, I have a doubt:
> A null value in a field could affect the performance of the database??
>
> Regards.
> Thank you very much for your time.
>
> ----- "Digimer" <linux(at)alteeve(dot)com> escribió:
>> On 10-08-16 09:51 PM, Lazaro Ruben Garcia Martinez wrote:
>> > Hola a todos, desde hace mucho tiempo tengo una una duda relacionada con
>> > los campos nullos, quería saber si tanto el empleo como la presencia de
>> > los mismos ya sea en tablas pequeñas o grandes, pude afectar de alguna
>> > forma el rendimiento del sistema, ademas quisiera saber que
>> > inconvenientes puede presentar.
>> >
>> > Saludos y muchisimas gracias por su tiempo.
>>
>> Lo siento, pero esto es una lista de correo Inglés. Usted recibirá más
>> ayuda si usted puede volver a preguntar en Inglés.
>>
>> Creo que NULL no tiene resultados reales afectados. Es sólo otro estado;
>> True, False, Null.
>>
>> ------------------------
>> Google translated, sorry for the poor Spanish.
>>
>> --
>> Digimer
>> E-Mail:         linux(at)alteeve(dot)com
>> AN!Whitepapers: http://alteeve.com
>> Node Assassin:  http://nodeassassin.org
>>

--
To understand recursion, one must first understand recursion.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-08-17 03:05:45 Re: Postgresql's table & index compared to that of MySQL
Previous Message Lazaro Ruben Garcia Martinez 2010-08-17 02:49:59 Re: Duda sobre campo null!!!