pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Marti Raudsepp <marti@juffo.org>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: sthomas@peak6.com, Maciek Sakrejda <msakrejda@truviso.com>
Cc: felix <crucialfelix@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Really really slow select count(*)
Date: Tue, 08 Feb 2011 15:09:40 -0500
Message-ID: <4D51A304.4070003@2ndquadrant.com> (raw)
In-Reply-To: <AANLkTi=uh-zScT=LcYQ6kXDXCpmMZoAeiO4hqk0=WWSt@mail.gmail.com>
References: <AANLkTinAJcm5A+i1O_R87aiYyu8N2OWgoaL9RfR=tUR9@mail.gmail.com>
	<4D4C138C.7010304@2ndquadrant.com>
	<4D4C1555.40209@peak6.com>
	<AANLkTikrS5JkJDMjAXpcRWRnuLbX+MHB=CWb_mFa9qb-@mail.gmail.com>
	<4D4C2AC3.5020804@peak6.com>
	<AANLkTin8ndBSU9ZJ2uAdnvYQ7oLBg2S04bqAXn-s5qv+@mail.gmail.com>
	<AANLkTim+aLaihKbNSsiiL4exgtCeRqCh_50j48jHFDQm@mail.gmail.com>
	<AANLkTimnFc-hKG+PFEfwBPLAoK6q9kx=nc_4Fr++C_QB@mail.gmail.com>
	<D247E79EFD801E40A9449A9724F6295B0474BBF807@spswchi6mail1.peak6.net>
	<AANLkTiknh-snZvy4_PzS9CgVfNCH3RTS+V=COWVOnTNo@mail.gmail.com>
	<4D5151C6.7040109@peak6.com>
	<AANLkTinaaVonows3OzN3dVNZQyqhLMVYv8M0Y0Cg73H_@mail.gmail.com>
	<4D511C99020000250003A62D@gw.wicourts.gov>
	<AANLkTi=uh-zScT=LcYQ6kXDXCpmMZoAeiO4hqk0=WWSt@mail.gmail.com>

Marti Raudsepp wrote:
> I couldn't find any past discussions about changing the default to "fast".
> Are there any reasons why that cannot be done in a future release?
>   

Well, it won't actually help as much as you might think.  It's possible 
for clients to be in a state where fast shutdown doesn't work, either.  
You either have to kill them manually or use an immediate shutdown.

Kevin and I both suggested a "fast plus timeout then immediate" behavior 
is what many users seem to want.  My comments were at 
http://archives.postgresql.org/pgsql-hackers/2009-09/msg01145.php ; for 
an example of how fast shutdown can fail see 
http://archives.postgresql.org/pgsql-bugs/2009-03/msg00062.php

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (66+ messages)  latest in thread

Message-ID: <4D51A304.4070003@2ndquadrant.com>
Permalink:  ../4D51A304.4070003@2ndquadrant.com/
Also on:    postgresql.org/message-id/4D51A304.4070003@2ndquadrant.com

 · 

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: greg@2ndquadrant.com, marti@juffo.org, Kevin.Grittner@wicourts.gov, msakrejda@truviso.com, crucialfelix@gmail.com
  Subject: Re: Really really slow select count(*)
  In-Reply-To: <4D51A304.4070003@2ndquadrant.com>

* 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