pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <gsstark@mit.edu>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: best way to fetch next/prev record based on index
Date: 28 Jul 2004 18:54:35 -0400
Message-ID: <876587spxw.fsf@stark.xeocode.com> (raw)
In-Reply-To: <23584.1091033781@sss.pgh.pa.us>
References: <6EE64EF3AB31D5448D0007DD34EEB34101AEFF@Herge.rcsinc.local>
	<20040727204057.S28969@megazone.bigpanda.com>
	<87oem0u182.fsf@stark.xeocode.com>
	<21449.1091023621@sss.pgh.pa.us>
	<87y8l4rujq.fsf@stark.xeocode.com>
	<23584.1091033781@sss.pgh.pa.us>


Tom Lane <tgl@sss.pgh.pa.us> writes:

> One thing I did not like about your first pass is that it makes
> unsupportable assumptions about there being a semantic relationship
> between operators named, say, '<' and '<='.  

Hm, I think I even had caught that issue on the mailing list previously.

In that case though, it seems even the existing code is insufficient. Instead
of testing whether the operator with strcmp against "=" and "<>" it should
perhaps be looking for an operator class and the strategy number for the
operator and its negator.

-- 
greg




view thread (34+ messages)  latest in thread

Message-ID: <876587spxw.fsf@stark.xeocode.com>
Permalink:  ../876587spxw.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/876587spxw.fsf@stark.xeocode.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: gsstark@mit.edu, tgl@sss.pgh.pa.us, sszabo@megazone.bigpanda.com, merlin.moncure@rcsonline.com
  Subject: Re: best way to fetch next/prev record based on index
  In-Reply-To: <876587spxw.fsf@stark.xeocode.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