git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 84c0e4b) | patch
Minimize slot creation for multi-inserts of pg_shdepend
Sat, 1 Aug 2020 02:49:13 +0000 (11:49 +0900)
Sat, 1 Aug 2020 02:49:13 +0000 (11:49 +0900)
commit 022350b8495a8a7ff0ff8dd6791572e91e7cd6fe
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
src/backend/catalog/pg_shdepend.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /