Re: BTrees with record numbers - Mailing list pgsql-hackers

From scott.marlowe
Subject Re: BTrees with record numbers
Date
Msg-id Pine.LNX.4.33.0403010928480.32148-100000@css120.ihs.com
Whole thread Raw
In response to BTrees with record numbers  (chadzakary@hotmail.com (Chad))
List pgsql-hackers
On 27 Feb 2004, Chad wrote:

> Is it possible for Postgres Btrees to support access by logical row number ?
> If not available is ti a huge job to support for sombebody willing to have a go ?

Are talking about logical row operators as maintained by your own code 
outside the database, or having postgresql suddenly start maintaining 
logical row numbers?  I doubt postgresql will ever have built in logical 
row numbers because maintaining them in a materialized way is quite 
expensive.

On the other hand, if you just need logical row numbers for a one off 
thing, you can do this:

create temp sequence judy;
select *, nextval('judy') from mytable;



pgsql-hackers by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: [pgsql-www] Collaboration Tool Proposal
Next
From: Josh Berkus
Date:
Subject: Re: Collaboration Tool Proposal -- Summary to date