pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@heroku.com>
Cc: Daniel Newman <dtnewman@gmail.com>
Cc: danielnewman@umich.edu, Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14210: filter by "=" constraint doesn't work when hash index is present on a column
Date: Sat, 16 Jul 2016 16:32:30 -0400
Message-ID: <25690.1468701150@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM3SWZQ2ikFHTTdbWcvrdBLdtDycY-0K4-XQa3wMpwA4D+181A@mail.gmail.com>
References: <20160623162507.17237.39471@wrigleys.postgresql.org>
	<30648.1466701447@sss.pgh.pa.us>
	<CALo0FatmGhupZU02+2WwN3v=rDoPuEkY_HhMQRhmfdQxerXA8Q@mail.gmail.com>
	<10331.1466723337@sss.pgh.pa.us>
	<CAM3SWZRZ=vCyO+41Nrjv5Mr1NE=W-MtVj5F=Lp88M8rqHBOFGQ@mail.gmail.com>
	<1009.1466803245@sss.pgh.pa.us>
	<CAM3SWZTyfbs2YQ0OMWMW0MZMfSKAkPKtusdhTKS+3FLdL9kEww@mail.gmail.com>
	<2502.1466805945@sss.pgh.pa.us>
	<CAM3SWZQqU8awdp6Q2_MHwCZC15qau23FTp19qka4NG+6U+fqjA@mail.gmail.com>
	<32645.1466868739@sss.pgh.pa.us>
	<CAM3SWZRCjnttFcXUeN0fuWSd3dXPmP7B4i_pu8C9kQs8ZUoThg@mail.gmail.com>
	<19501.1466881277@sss.pgh.pa.us>
	<CAM3SWZT7YYjf=SR-Vc6GCe6g1zHrUjKaA=5UwLymO3goWxPR+w@mail.gmail.com>
	<32702.1467039279@sss.pgh.pa.us>
	<1681.1467040869@sss.pgh.pa.us>
	<CAM3SWZTzzQmQU=a=XWiFEQyidXnSeRYEJOWf_YxWzRT04B=A-w@mail.gmail.com>
	<5399.1467058945@sss.pgh.pa.us>
	<CAM3SWZTBAo4hjbBd780+MrOKiKp_TMo1N3A0Rw9_im8gbD7fQA@mail.gmail.com>
	<21695.1468697736@sss.pgh.pa.us>
	<CAM3SWZQJ1JiW-gxaZ9afoOuQkAGwMMu4--Gx=D5YBVUX! L6_5XQ@mail.gmail.com>
	<22562.1468699476@sss.pgh.pa.us>
	<CAM3SWZQ2ikFHTTdbWcvrdBLdtDycY-0K4-XQa3wMpwA4D+181A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Geoghegan <pg@heroku.com> writes:
> On Sat, Jul 16, 2016 at 1:04 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> ... Maybe we should stick at least one simple test query in there
>> before we drop the index again.

> That's what I was thinking, but wasn't sure offhand which way it would
> happen. Couldn't hurt much to just add one more test.

Right.  Done.

> It is pretty awkward how the hash index searches are in
> hash_index.sql, which must coordinate with create_index.sql, but I
> didn't want to go against the grain and just put it all in one place.
> Maybe I should have.

Well, that structure is intended to work with indexes that are built and
then left in place throughout the tests.  For a short-lived index, the
best thing is to create it, test it, drop it, and really you can do that
about anywhere.  But again, doing that on tenk1 is problematic because
of its popularity in all sorts of query-planning tests; if you're going
to add a short-lived index you need to do that in a test that's not meant
to run concurrently with a lot of other stuff.

Another approach we could have taken is to construct a table just for
this purpose.  But I think the way it is now is fine.

In the longer term, if hash indexes ever become less of a second-class
citizen, maybe we'd actually want to include a hash index on tenk1
throughout the tests.  But I don't want to go there today.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (32+ messages)  latest in thread

Message-ID: <25690.1468701150@sss.pgh.pa.us>
Permalink:  ../25690.1468701150@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25690.1468701150@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 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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@heroku.com, dtnewman@gmail.com, robertmhaas@gmail.com
  Subject: Re: BUG #14210: filter by "=" constraint doesn't work when hash index is present on a column
  In-Reply-To: <25690.1468701150@sss.pgh.pa.us>
  References: <20160623162507.17237.39471@wrigleys.postgresql.org> <10331.1466723337@sss.pgh.pa.us> <CAM3SWZRZ=vCyO+41Nrjv5Mr1NE=W-MtVj5F=Lp88M8rqHBOFGQ@mail.gmail.com> <1009.1466803245@sss.pgh.pa.us> <CAM3SWZTyfbs2YQ0OMWMW0MZMfSKAkPKtusdhTKS+3FLdL9kEww@mail.gmail.com> <2502.1466805945@sss.pgh.pa.us> <CAM3SWZQqU8awdp6Q2_MHwCZC15qau23FTp19qka4NG+6U+fqjA@mail.gmail.com> <32645.1466868739@sss.pgh.pa.us> <CAM3SWZRCjnttFcXUeN0fuWSd3dXPmP7B4i_pu8C9kQs8ZUoThg@mail.gmail.com> <19501.1466881277@sss.pgh.pa.us> <CAM3SWZT7YYjf=SR-Vc6GCe6g1zHrUjKaA=5UwLymO3goWxPR+w@mail.gmail.com> <32702.1467039279@sss.pgh.pa.us> <1681.1467040869@sss.pgh.pa.us> <CAM3SWZTzzQmQU=a=XWiFEQyidXnSeRYEJOWf_YxWzRT04B=A-w@mail.gmail.com> <5399.1467058945@sss.pgh.pa.us> <CAM3SWZTBAo4hjbBd780+MrOKiKp_TMo1N3A0Rw9_im8gbD7fQA@mail.gmail.com> <21695.1468697736@sss.pgh.pa.us> <22562.1468699476@sss.pgh.pa.us> <CAM3SWZQ2ikFHTTdbWcvrdBLdtDycY-0K4-XQa3wMpwA4D+181A@mail.gmail.com> <25690.1468701150@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