pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Jeff Davis <pgsql@j-davis.com>
Subject: Re: Index usage for tstzrange?
Date: Thu, 21 Mar 2013 17:05:31 -0700
Message-ID: <514BA04B.3040609@agliodbs.com> (raw)
In-Reply-To: <1326.1363838330@sss.pgh.pa.us>
References: <514A5088.6060101@agliodbs.com>
	<1326.1363838330@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>


> Well, no.  <@ is not a btree-indexable operator.

Yes, but it's equivalent to ( ( a >= b1 or b1 is null ) and ( a < b2 or
b2 is null ) ), which *is* btree-indexable and can use an index.  So it
seems like the kind of optimization we could eventually make.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


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



view thread (9+ messages)  latest in thread

Message-ID: <514BA04B.3040609@agliodbs.com>
Permalink:  ../514BA04B.3040609@agliodbs.com/
Also on:    postgresql.org/message-id/514BA04B.3040609@agliodbs.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: josh@agliodbs.com, tgl@sss.pgh.pa.us, pgsql@j-davis.com
  Subject: Re: Index usage for tstzrange?
  In-Reply-To: <514BA04B.3040609@agliodbs.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