pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Mirosław <marcin@mejor.pl>
To: pgsql-performance@postgresql.org
Subject: Re: which one is faster
Date: Tue, 26 Oct 2010 13:59:03 +0200
Message-ID: <4CC6C287.8070803@mejor.pl> (raw)
In-Reply-To: <AANLkTikWbbFNykGXdobR06dsePn40JrBYvfFZLmu+H1j@mail.gmail.com>
References: <AANLkTimgjmGCcxjSmf6BvQ=BBGLBrMspfcFgWhrpsVVr@mail.gmail.com>
	<AANLkTikWbbFNykGXdobR06dsePn40JrBYvfFZLmu+H1j@mail.gmail.com>

W dniu 26.10.2010 12:59, Szymon Guz pisze:
> both queries are the same.

IMHO they aren't the same, but they returns the same value in this case.
I mean count(field) doesn't count NULL values, count(*) does it.
I'm writing this only for note:)
Regards



view thread (9+ messages)  latest in thread

Message-ID: <4CC6C287.8070803@mejor.pl>
Permalink:  ../4CC6C287.8070803@mejor.pl/
Also on:    postgresql.org/message-id/4CC6C287.8070803@mejor.pl

 · 

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-performance@postgresql.org
  Cc: marcin@mejor.pl
  Subject: Re: which one is faster
  In-Reply-To: <4CC6C287.8070803@mejor.pl>

* 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