pgsql: Refactor creation of normal dependency records when creating ext

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor creation of normal dependency records when creating ext
Date: 2020-07-01 02:15:14
Message-ID: E1jqSHK-0004uw-6d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/684b4f29b729e5b135d256802d6e712222b9551f

Modified Files
--------------
src/backend/commands/extension.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2020-07-01 02:43:17 pgsql: Improve vacuum error context handling.
Previous Message Michael Paquier 2020-07-01 01:49:05 pgsql: Fix removal of files generated by TAP tests for SSL