pgsql: Shorten pg_attribute_always_inline to pg_always_inline

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

pgsql: Shorten pg_attribute_always_inline to pg_always_inline

От:
Tomas Vondra <tomas.vondra@postgresql.org>
Дата:
Shorten pg_attribute_always_inline to pg_always_inline

The pg_attribute_always_inline macro name is so long it forces pgindent
to format the code in strange ways. Which may incentivize patch authors
to either structure the code in strange ways (e.g. reorder prototypes),
use shorter names, etc. Neither is very desirable for code readability.

This shortens the name by removing the _attribute_ part. It also makes
it more consistent with pg_noinline, which does not have the _attribute_
part either.

Backpatched to all supported branches, to prevent conflicts when
backpatching other fixes. The backbranches however keep both the old and
new macro name, so that existing code keeps working.

Author: Andres Freund 
Reviewed-by: Peter Geoghegan 
Reviewed-by: Tomas Vondra 
Discussion: https://postgr.es/m/bqqdehahpoa36igpictuqyn2s2mexk3t3ehidh2ffd2slb35e5@rzgksuiszgbg
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a474c01c87661f85827736dc8cfc353fd63c6ecf

Modified Files
--------------
src/backend/access/heap/heapam.c      |  2 +-
src/backend/access/transam/xlog.c     |  4 +--
src/backend/commands/copyfromparse.c  | 32 ++++++++++-----------
src/backend/commands/copyto.c         |  4 +--
src/backend/executor/execExprInterp.c | 54 +++++++++++++++++------------------
src/backend/executor/execTuples.c     |  6 ++--
src/backend/executor/nodeHashjoin.c   |  2 +-
src/backend/executor/nodeSeqscan.c    |  4 +--
src/backend/nodes/queryjumblefuncs.c  |  6 ++--
src/backend/storage/buffer/bufmgr.c   | 24 ++++++++--------
src/backend/utils/adt/json.c          |  2 +-
src/backend/utils/cache/catcache.c    |  2 +-
src/include/c.h                       |  9 +++++-
src/include/executor/execScan.h       | 18 ++++++------
src/include/portability/instr_time.h  |  8 +++---
15 files changed, 92 insertions(+), 85 deletions(-)

FAQ