Re: What to name the current heap after pluggable storage / what torename? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: What to name the current heap after pluggable storage / what torename?
Date
Msg-id 4daa88ea-53d1-cc6e-dda4-3f2da3ff84da@2ndquadrant.com
Whole thread Raw
In response to What to name the current heap after pluggable storage / what torename?  (Andres Freund <andres@anarazel.de>)
Responses Re: What to name the current heap after pluggable storage / what to rename?
List pgsql-hackers
On 19/12/2018 05:17, Andres Freund wrote:
> I'm concerned that naming it heap, and the corresponding functions
> fitting with that name, will be confusing. There's a lot of functions
> that have a heap_ prefix (or similar) that aren't really dependent on
> how the storage works, but much more general infrastructure (consider
> e.g. heap_create_with_catalog()).

I'm wondering where the choice of the name "heap" originally came from
and what it refers to.  In "The Design of Postgres"[0], it is said that
"All relations will be stored as heaps (as in [ASTR76]) with an optional
collection of secondary indexes."  But ASTR76[1] does not mention the
word "heap", so it doesn't appear to refer to any specific method or
algorithm.

The heap is clearly not the tree data structure.  Is it meant in the
sense of memory allocation, a place to store a large amount of stuff in
a mostly unorganized way?


[0]: http://db.cs.berkeley.edu/papers/ERL-M85-95.pdf
[1]: http://daslab.seas.harvard.edu/reading-group/papers/astrahan-1976.pdf


-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Ordered Partitioned Table Scans
Next
From: Pavel Stehule
Date:
Subject: single user mode -P option is ignored