• Michael Paquier's avatar
    Switch to multi-inserts when registering dependencies for many code paths · 8febfd18
    Michael Paquier authored
    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
    8febfd18
pg_proc.c 34 KB