Re: How Postgresql Compares For Query And Load Operations - Mailing list pgsql-general

From Sean Chittenden
Subject Re: How Postgresql Compares For Query And Load Operations
Date
Msg-id 20010721115944.T5160@rand.tgd.net
Whole thread Raw
In response to Re: How Postgresql Compares For Query And Load Operations  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: How Postgresql Compares For Query And Load Operations  (Shaun Thomas <sthomas@townnews.com>)
List pgsql-general
> > I thought it was worth trying a different query as well :
> >
> > SELECT count(*) FROM fact0
> >
> > DB        Elapsed        Cpu
> > Postgres    1m5s        32s
> > Db2        23s        15s
> > Oracle        37s        11s

    This may be an Oracle DBA myth, but I was told by my ORA DBA
that it should be "SELECT count(1) FROM fact0" and not count(*).  For
some reason it was thought that count(1) would run faster, but I can't
confirm or deny this.  Does this make a difference in the benchmark?
-sc

--
Sean Chittenden

Attachment

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: How Postgresql Compares For Query And Load Operations
Next
From: Jeremy Hansen
Date:
Subject: foreign keys?