pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Smith <gsmith@gregsmith.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: I/O on select count(*)
Date: Thu, 15 May 2008 03:07:09 -0400
Message-ID: <28388.1210835229@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.64.0805142211300.5617@westnet.com>
References: <920841.71690.qm@web44808.mail.sp1.yahoo.com>
	<482B1D5F.EE98.0025.0@wicourts.gov>
	<Pine.GSO.4.64.0805142133250.27290@westnet.com>
	<20080515020553.GN9838@alvh.no-ip.org>
	<Pine.GSO.4.64.0805142211300.5617@westnet.com>

Greg Smith <gsmith@gregsmith.com> writes:
> ... To put that another way:  if I've run a manual vacuum, is it true 
> that it will have updated all the hint bits to XMIN_COMMITTED for all the 
> tuples that were all done when the vacuum started?

Any examination whatsoever of a tuple --- whether by vacuum or any
ordinary DML operation --- will update its hint bits to match the
commit/abort status of the inserting/deleting transaction(s) as of
the instant of the examination.  Your statement above is true but
is weaker than reality.

			regards, tom lane



view thread (54+ messages)  latest in thread

Message-ID: <28388.1210835229@sss.pgh.pa.us>
Permalink:  ../28388.1210835229@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28388.1210835229@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, gsmith@gregsmith.com, alvherre@commandprompt.com
  Subject: Re: I/O on select count(*)
  In-Reply-To: <28388.1210835229@sss.pgh.pa.us>

* 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