postgresql/src/backend/access
Michael Paquier e3931d01f3 Use multi-inserts for pg_attribute and pg_shdepend
For pg_attribute, this allows to insert at once a full set of attributes
for a relation (roughly 15% of WAL reduction in extreme cases).  For
pg_shdepend, this reduces the work done when creating new shared
dependencies from a database template.  The number of slots used for the
insertion is capped at 64kB of data inserted for both, depending on the
number of items to insert and the length of the rows involved.

More can be done for other catalogs, like pg_depend.  This part requires
a different approach as the number of slots to use depends also on the
number of entries discarded as pinned dependencies.  This is also
related to the rework or dependency handling for ALTER TABLE and CREATE
TABLE, mainly.

Author: Daniel Gustafsson
Reviewed-by: Andres Freund, Michael Paquier
Discussion: https://postgr.es/m/20190213182737.mxn6hkdxwrzgxk35@alap3.anarazel.de
2020-07-31 10:54:26 +09:00
..
brin Remove WARNING message from brin_desummarize_range 2020-07-09 20:13:25 -04:00
common Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
gin Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
gist code: replace 'master' with 'primary' where appropriate. 2020-07-08 12:57:23 -07:00
hash Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
heap Use multi-inserts for pg_attribute and pg_shdepend 2020-07-31 10:54:26 +09:00
index Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
nbtree Add nbtree Valgrind buffer lock checks. 2020-07-21 15:50:58 -07:00
rmgrdesc WAL Log invalidations at command end with wal_level=logical. 2020-07-23 08:34:48 +05:30
spgist Fix masking of SP-GiST pages during xlog consistency check 2020-06-20 17:34:51 +03:00
table Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Remove non-fast promotion. 2020-07-29 21:24:26 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00