Refactor creation of normal dependency records when creating extension
authorMichael Paquier <michael@paquier.xyz>
Wed, 1 Jul 2020 02:12:33 +0000 (11:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 1 Jul 2020 02:12:33 +0000 (11:12 +0900)
commit684b4f29b729e5b135d256802d6e712222b9551f
tree61e9479c1a8c783dfd20b376b0864e2c975f0ce4
parentc4342c932abb6792f6c7d8528b6224ca4d5e1a84
Refactor creation of normal dependency records when creating extension

When creating an extension, the same type of dependency is used when
registering a dependency to a schema and required extensions.  This
improves the code so as those dependencies are not recorded one-by-one,
but grouped together.  Note that this has as side effect to remove
duplicate dependency entries, even if it should not happen in practice
as extensions listed as required in a control file should be listed only
once.

Extracted from a larger patch by the same author.

Author: Daniel Dustafsson
Discussion: https://postgr.es/m/20200629065535.GA183079@paquier.xyz
src/backend/commands/extension.c