postgresql/src/backend/catalog
Michael Paquier 022350b849 Minimize slot creation for multi-inserts of pg_shdepend
When doing multiple insertions in pg_shdepend for the copy of
dependencies from a template database in CREATE DATABASE, the same
number of slots would have been created and used all the time.  As the
number of items to insert is not known in advance, this makes most of
the slots created for nothing.  This improves the slot handling so as
slot creation only happens when needed, minimizing the overhead of the
operation.

Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20200731024148.GB3317@paquier.xyz
2020-08-01 11:49:13 +09:00
..
.gitignore
aclchk.c
catalog.c
Catalog.pm
dependency.c
genbki.pl
heap.c
index.c Use multi-inserts for pg_attribute and pg_shdepend 2020-07-31 10:54:26 +09:00
indexing.c
information_schema.sql
Makefile
namespace.c
objectaccess.c
objectaddress.c
partition.c
pg_aggregate.c
pg_cast.c
pg_collation.c
pg_constraint.c
pg_conversion.c
pg_db_role_setting.c
pg_depend.c
pg_enum.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_inherits.c
pg_largeobject.c
pg_namespace.c
pg_operator.c
pg_proc.c
pg_publication.c
pg_range.c
pg_shdepend.c Minimize slot creation for multi-inserts of pg_shdepend 2020-08-01 11:49:13 +09:00
pg_subscription.c
pg_type.c
sql_feature_packages.txt
sql_features.txt
storage.c
system_views.sql
toasting.c