Re: Sequences in transaction - Mailing list pgsql-general

From Mike Castle
Subject Re: Sequences in transaction
Date
Msg-id 20001205120138.D17698@thune.mrc-home.org
Whole thread Raw
In response to Re: Sequences in transaction  (Camm Maguire <camm@enhanced.com>)
List pgsql-general
On Tue, Dec 05, 2000 at 12:03:40PM -0500, Camm Maguire wrote:
> need to be able to *quickly* select a pair of *adjacent* rows in a
> table.  t2.seq = t1.seq + 1 seems to work pretty well.  Of course, I

What's wrong with a select ... order by .. limit 2 ?

mrc
--
       Mike Castle       Life is like a clock:  You can work constantly
  dalgoda@ix.netcom.com  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

pgsql-general by date:

Previous
From: "Adam Lang"
Date:
Subject: Open Source Article
Next
From: Nico D
Date:
Subject: Re: inheritance and foreign keys