diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-09-05 21:33:53 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-09-05 21:33:53 +0900 |
commit | 8febfd1855450f50f17419def41c2ea9bcf994d5 (patch) | |
tree | 50b6bf4ceca0742ae4be713d842e27d83df5f98e /src/backend/commands/async.c | |
parent | 11b80d900fe4297e8e4bc231f6a41b53d604ed9e (diff) | |
download | postgresql-8febfd1855450f50f17419def41c2ea9bcf994d5.tar.gz postgresql-8febfd1855450f50f17419def41c2ea9bcf994d5.zip |
Switch to multi-inserts when registering dependencies for many code paths
This commit improves the dependency registrations by taking advantage of
the preliminary work done in 63110c62, to group together the insertion
of dependencies of the same type to pg_depend. With the current layer
of routines available, and as only dependencies of the same type can be
grouped, there are code paths still doing more than one multi-insert
when it is necessary to register dependencies of multiple types
(constraint and index creation are two cases doing that).
While on it, this refactors some of the code to use ObjectAddressSet()
when manipulating object addresses.
Author: Daniel Gustafsson, Michael Paquier
Reviewed-by: Andres Freund, Álvaro Herrera
Discussion: https://postgr.es/m/20200807061619.GA23955@paquier.xyz
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions