Re: best way to fetch next/prev record based on index - Mailing list pgsql-performance

From Rod Taylor
Subject Re: best way to fetch next/prev record based on index
Date
Msg-id 1090938993.83536.85.camel@jester
Whole thread Raw
In response to best way to fetch next/prev record based on index  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List pgsql-performance
You only want one record to be returned? Tack a LIMIT 1 onto the end of
the query.

> My problem is deceptively simple: how you read the next record from a
> table based on a given set of values?  In practice, this is difficult to
> implement.  If anybody can suggest a alternative/better way to this, I'm
> all ears.



pgsql-performance by date:

Previous
From: Markus Schaber
Date:
Subject: Re: best way to fetch next/prev record based on index
Next
From: "Merlin Moncure"
Date:
Subject: Re: best way to fetch next/prev record based on index