pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: postgres sql list <pgsql-sql@postgresql.org>
Subject: no cond returns diff res than cond or !cond
Date: 12 Nov 2001 15:26:44 +0100
Message-ID: <1005575205.31390.2.camel@entwicklung01.cenes.de> (raw)

Good day,

feline=> select version();
                            version                            
---------------------------------------------------------------
 PostgreSQL 7.0.2 on i686-pc-linux-gnu, compiled by gcc 2.95.2
(1 row)

feline=> select count(*) from produkte;
 count 
-------
 36405
(1 row)

feline=> select count(*) from produkte where artnummer != NULL or
artnummer = NULL;
 count 
-------
 36347
(1 row)

cenes_test=> select version();
                           version                           
-------------------------------------------------------------
 PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)

cenes_test=> select count(*) from produkte;
 count 
-------
 36384
(1 row)

cenes_test=> select count(*) from produkte where artnummer = NULL or
artnummer != NULL;
 count 
-------
 36326
(1 row)

2nd query 58 less than first.

bug?

Markus Bertheau






view thread (3+ messages)  latest in thread

Message-ID: <1005575205.31390.2.camel@entwicklung01.cenes.de>
Permalink:  ../1005575205.31390.2.camel@entwicklung01.cenes.de/
Also on:    postgresql.org/message-id/1005575205.31390.2.camel@entwicklung01.cenes.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: twanger@bluetwanger.de
  Subject: Re: no cond returns diff res than cond or !cond
  In-Reply-To: <1005575205.31390.2.camel@entwicklung01.cenes.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox