Обсуждение: pgsql: Refactor ObjectAddress field assignments in more places

Поиск
Список
Период
Сортировка

pgsql: Refactor ObjectAddress field assignments in more places

От
Michael Paquier
Дата:
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(-)