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

From Robert Haas
Subject Re: What to name the current heap after pluggable storage / what to rename?
Date
Msg-id CA+TgmoaFcAjO0c58k5zGuKUb6s3ts_uRjku8CfWH4RY_7kbXqA@mail.gmail.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 torename?  (Daniel Gustafsson <daniel@yesql.se>)
Re: What to name the current heap after pluggable storage / what torename?  (Andres Freund <andres@anarazel.de>)
Re: What to name the current heap after pluggable storage / what torename?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Tue, Dec 18, 2018 at 11:17 PM Andres Freund <andres@anarazel.de> wrote:
> The current pluggable table storage patchset [1] introduces the ability
> to specify the access method of a table (CREATE TABLE ... USING
> "ident"). The patchset currently names the current storage method
> (i.e. heapam.c et al) "heap" (whereas e.g. zheap's in named, drumroll,
> zheap).

I vote for calling the current heap "heap" - i.e. what the patchset is
currently doing.  As others have already noted, that's a perfectly
good word for storing stuff in no particular order, and it's also a
term with a very long history. If we call it "oheap" or "pile" or
something based on a clever pun, then we'll just be making users learn
a new word for, as far as I can see, no real benefit.

> Another would be to be aggressive in renaming, and deconflict by
> renaming functions like heap_create[_with_catalog] etc to sound more
> accurate. I think that has some appeal, because a lot of those names
> aren't describing their tasks particularly well.

I like that option.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: lock level for DETACH PARTITION looks sketchy
Next
From: Daniel Gustafsson
Date:
Subject: Re: What to name the current heap after pluggable storage / what torename?