Re: What to name the current heap after pluggable storage / what to rename?
Darafei Komяpa Praliaskouski <me@komzpa.net>
From: Darafei "Komяpa" Praliaskouski <me@komzpa.net>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org, Haribabu Kommi <kommi.haribabu@gmail.com>, Alexander Korotkov <a.korotkov@postgrespro.ru>,
Robert Haas <robertmhaas@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>
Date: 2018-12-19T18:37:00Z
Lists: pgsql-hackers
Call it "pile" and "hoard": https://www.thesaurus.com/browse/heap https://www.thesaurus.com/browse/pile https://www.thesaurus.com/browse/hoard ср, 19 дек. 2018 г. в 07:17, Andres Freund <andres@anarazel.de>: > Hi, > > 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'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()). > > One solution is to just live with the confusion, add a few header > comments to files like src/backend/catalog/heap.c, explaining that > they're more general than heapam.c (and in the patch heapam_handler.c, > which mostly dispatches to heapam.c). > > Another approach would be to come up with a different, potentially > witty, name for the current postgres table access method. Then either > rename a few of the heapam.c et functions, or live with the slightly > more confusing names. > > 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. > > Greetings, > > Andres Freund > > [1] > https://postgr.es/m/20180703070645.wchpu5muyto5n647%40alap3.anarazel.de > > -- Darafei Praliaskouski Support me: http://patreon.com/komzpa
Commits
-
Replace heapam.h includes with {table, relation}.h where applicable.
- 111944c5ee56 12.0 landed
-
Replace uses of heap_open et al with the corresponding table_* function.
- e0c4ec07284d 12.0 landed
-
Introduce access/{table.h, relation.h}, for generic functions from heapam.h.
- 4b21acf522d7 12.0 landed