From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Refactor ObjectAddress field assignments for type dependencies |
Date: | 2020-06-29 00:58:28 |
Message-ID: | E1jpi7w-0003Hw-NC@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Refactor ObjectAddress field assignments for type dependencies
The logic used to build the set of dependencies needed for a type is
rather repetitive with direct assignments for each ObjectAddress field.
This refactors the code to use the macro ObjectAddressSet() instead, to
do the same work. There are more areas of the backend code that could
use this macro, but these are left for a follow-up patch that will
partially rework the way dependencies are recorded as well. Type
dependencies are left out of the follow-up patch, so they are refactored
separately here.
Extracted from a larger patch by the same author.
Author: Daniel Gustafsson
Discussion: https://potgr.es/m/20190213182737.mxn6hkdxwrzgxk35@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/68de1440c79d75e529ff8c7395d698252370f992
Modified Files
--------------
src/backend/catalog/pg_type.c | 53 ++++++++++++-------------------------------
1 file changed, 14 insertions(+), 39 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2020-06-29 03:34:25 | Re: pgsql: Enable Unix-domain sockets support on Windows |
Previous Message | Peter Eisentraut | 2020-06-28 08:33:53 | Re: pgsql: Enable Unix-domain sockets support on Windows |