pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Claudio Freire <klaussfreire@gmail.com>
Cc: Robert Klemme <shortcutter@googlemail.com>
Cc: Stefan Keller <sfkeller@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Peter Geoghegan <peter@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Hash index use presently(?) discouraged since 2005: revive or bury it?
Date: Tue, 20 Sep 2011 12:25:19 -0400
Message-ID: <9496.1316535919@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHyXU0w3HniZ58tbNWtBL=_uxqbsuu7Qq_TqHLHF-nF7v8FfZA@mail.gmail.com>
References: <CAFcOn293Rzi7cZYWBT8tjxCtNX5pYdbknANXgf9mWfBizK8Frg@mail.gmail.com>
	<CAEYLb_Udue8_XSE9K0KMqKBE_62yurv1bY4Wc+qJoGykZ_rXtA@mail.gmail.com>
	<CAMkU=1x7EsbLh8oxYtXKWzDx5HUDxQ2Vb4sFDCVY0FE8rnttSg@mail.gmail.com>
	<CAHyXU0wPJkYhQLioswNRe6YmXcC_JKZmDxXsb1jcLHo8+BuJkw@mail.gmail.com>
	<CAFcOn2_NnrzquFQ+YPw2vh=ioC+KXcE1NdEJZWG4O7pmY1Eu3Q@mail.gmail.com>
	<CAHyXU0yExA3sBDy1o1vJ57g5pTV5MQ_Z7HXhBo9Pv0+Zg-moHg@mail.gmail.com>
	<CAM9pMnNUoOnLye5iPqGu15K43Nus=xtCL_rRW5LRt3UJ3vqDQQ@mail.gmail.com>
	<CAHyXU0xmVjP_vgFOpiUWBV=kwAT5CC90=1Pu-CrTtMKZc1f1eg@mail.gmail.com>
	<CAGTBQpYeKyfN4_qryv7O+biMPqjapLH4r4gNUOCrHgfbOAeZiQ@mail.gmail.com>
	<CAHyXU0w3HniZ58tbNWtBL=_uxqbsuu7Qq_TqHLHF-nF7v8FfZA@mail.gmail.com>

Merlin Moncure <mmoncure@gmail.com> writes:
> just selects.  update test is also very interesting -- the only test I
> did  for for updates is 'update foo set x=x+1' which was a win for
> btree (20-30% faster typically).  perhaps this isn't algorithm induced
> though -- lack of wal logging could actually hurt time to commit
> because it deserializes i/o.

In 9.1+, you could remove WAL from the comparison by doing the tests on
an unlogged table.

			regards, tom lane



view thread (40+ messages)

Message-ID: <9496.1316535919@sss.pgh.pa.us>
Permalink:  ../9496.1316535919@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9496.1316535919@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, mmoncure@gmail.com, klaussfreire@gmail.com, shortcutter@googlemail.com, sfkeller@gmail.com, jeff.janes@gmail.com, peter@2ndquadrant.com
  Subject: Re: Hash index use presently(?) discouraged since 2005: revive or bury it?
  In-Reply-To: <9496.1316535919@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