Reading all tuples in Index Access Method - Mailing list pgsql-hackers

From Sushrut Shivaswamy
Subject Reading all tuples in Index Access Method
Date
Msg-id CAH5mb98yWxQSWF6=aOYtOSCuKGHQ1auoC4xPPPYwj2tKOjORJQ@mail.gmail.com
Whole thread Raw
Responses Re: Reading all tuples in Index Access Method
List pgsql-hackers
Hi,

I'm trying to create an Index Access Method Roting.
Building the index requires iterating over all rows and calculating, 
which is then used during index construction.

The methods in the IndexAmRoutine seem to deal with insertion / index build one row at a time.
Is there any workaround you can suggest that would allow me to calculate the median of a column, 
store it someplace and then use it during Inserts to the index?

Thanks,
Sushrut

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Showing primitive index scan count in EXPLAIN ANALYZE (for skip scan and SAOP scans)
Next
From: Robert Haas
Date:
Subject: Re: allowing extensions to control planner behavior