pgsql: Refactor ObjectAddress field assignments in more places

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor ObjectAddress field assignments in more places
Date: 2020-07-01 08:14:22
Message-ID: E1jqXss-0007DA-9D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor ObjectAddress field assignments in more places

This is a follow-up commit similar to 68de144, with more places in the
backend code simplified with the macros able to assign values to the
fields of ObjectAddress. The code paths changed here could be
transitioned later into using more grouping when inserting dependency
records, simplifying this future work.

Author: Daniel Gustafsson, Michael Paquier
Discussion: https://postgr.es/m/20190213182737.mxn6hkdxwrzgxk35@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4315e8c23b9a897e12fcf91de7bfd734621096bf

Modified Files
--------------
src/backend/catalog/heap.c | 12 +++---------
src/backend/catalog/index.c | 39 +++++++++++--------------------------
src/backend/catalog/pg_aggregate.c | 36 +++++++++-------------------------
src/backend/catalog/pg_constraint.c | 36 ++++++++++------------------------
src/backend/catalog/pg_operator.c | 32 ++++++++----------------------
src/backend/catalog/pg_proc.c | 32 ++++++++----------------------
6 files changed, 49 insertions(+), 138 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-07-02 04:59:54 pgsql: Move description of libpqwalreceiver hooks out of the replicatio
Previous Message Amit Kapila 2020-07-01 02:43:17 pgsql: Improve vacuum error context handling.