What's faster: value of 0 or NULL with index - Mailing list pgsql-general

From Alvar Freude
Subject What's faster: value of 0 or NULL with index
Date
Msg-id 3A3449D8.9DC899AD@merz-akademie.de
Whole thread Raw
Responses Re: What's faster: value of 0 or NULL with index  (GH <grasshacker@over-yonder.net>)
List pgsql-general
Hi,

I'm thinking about, what might be faster on SELECTs: a column with index
which is NOT NULL and takes the value of 0 or a column which can take
the NULL value instead of 0, also with index.

My feeling sais, that 0 and NOT NULL should be a lot more faster, but
perhaps it's not true?


bye
  Alvar


--
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/  |  Mach mit!
Blast-DE: http://www.assoziations-blaster.de/   |  Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/               |  Blast/english

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: Re: Why PostgreSQL is not that popular as MySQL ?
Next
From: GH
Date:
Subject: Re: What's faster: value of 0 or NULL with index