postgresql/src/backend/access
Tom Lane 5da14938f7 Rename SLRU structures and associated LWLocks.
Originally, the names assigned to SLRUs had no purpose other than
being shmem lookup keys, so not a lot of thought went into them.
As of v13, though, we're exposing them in the pg_stat_slru view and
the pg_stat_reset_slru function, so it seems advisable to take a bit
more care.  Rename them to names based on the associated on-disk
storage directories (which fortunately we *did* think about, to some
extent; since those are also visible to DBAs, consistency seems like
a good thing).  Also rename the associated LWLocks, since those names
are likewise user-exposed now as wait event names.

For the most part I only touched symbols used in the respective modules'
SimpleLruInit() calls, not the names of other related objects.  This
renaming could have been taken further, and maybe someday we will do so.
But for now it seems undesirable to change the names of any globally
visible functions or structs, so some inconsistency is unavoidable.

(But I *did* terminate "oldserxid" with prejudice, as I found that
name both unreadable and not descriptive of the SLRU's contents.)

Table 27.12 needs re-alphabetization now, but I'll leave that till
after the other LWLock renamings I have in mind.

Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
2020-05-15 14:28:25 -04:00
..
brin Implement operator class parameters 2020-03-30 19:17:23 +03:00
common Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
gin Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
gist Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
hash Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
heap Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
index Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
nbtree Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
rmgrdesc Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
spgist Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
table Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Rename SLRU structures and associated LWLocks. 2020-05-15 14:28:25 -04:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00