pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-performance@postgresql.org
Subject: Re: count * performance issue
Date: Tue, 11 Mar 2008 10:34:39 -0400
Message-ID: <20080311143439.GA1465@crankycanuck.ca> (raw)
In-Reply-To: <Pine.LNX.4.64.0803111407580.20402@aragorn.flymine.org>
References: <200803071727.36146.josh@agliodbs.com>
	<13345.1204940295@sss.pgh.pa.us>
	<87r6eia9tz.fsf@oxford.xeocode.com>
	<12ba3bf00803101354w15b023e1o237f564a1b01105f@mail.gmail.com>
	<Pine.GSO.4.64.0803101853090.25041@westnet.com>
	<36af4bed0803101957u6078127fq78dc3384fe78de5d@mail.gmail.com>
	<20080311093537.a60e2e3d.wmoran@collaborativefusion.com>
	<Pine.LNX.4.64.0803111355440.20402@aragorn.flymine.org>
	<47D690A2.2090509@wildenhain.de>
	<Pine.LNX.4.64.0803111407580.20402@aragorn.flymine.org>

On Tue, Mar 11, 2008 at 02:19:09PM +0000, Matthew wrote:
> of rows with IS NULL, then someone changes a row, then you find the count 
> of rows with IS NOT NULL. Add the two together, and there may be rows that 
> were counted twice, or not at all.

Only if you count in READ COMMITTED.

A




view thread (62+ messages)

Message-ID: <20080311143439.GA1465@crankycanuck.ca>
Permalink:  ../20080311143439.GA1465@crankycanuck.ca/
Also on:    postgresql.org/message-id/20080311143439.GA1465@crankycanuck.ca

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: count * performance issue
  In-Reply-To: <20080311143439.GA1465@crankycanuck.ca>
  References: <200803071727.36146.josh@agliodbs.com> <13345.1204940295@sss.pgh.pa.us> <87r6eia9tz.fsf@oxford.xeocode.com> <12ba3bf00803101354w15b023e1o237f564a1b01105f@mail.gmail.com> <Pine.GSO.4.64.0803101853090.25041@westnet.com> <36af4bed0803101957u6078127fq78dc3384fe78de5d@mail.gmail.com> <20080311093537.a60e2e3d.wmoran@collaborativefusion.com> <Pine.LNX.4.64.0803111355440.20402@aragorn.flymine.org> <47D690A2.2090509@wildenhain.de> <Pine.LNX.4.64.0803111407580.20402@aragorn.flymine.org> <20080311143439.GA1465@crankycanuck.ca>

* 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