pgsql: Refactor ObjectAddress field assignments in more places - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Refactor ObjectAddress field assignments in more places
Date
Msg-id E1jqXss-0007DA-9D@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Improve vacuum error context handling.
Next
From: Michael Paquier
Date:
Subject: pgsql: Move description of libpqwalreceiver hooks out of the replicatio