Change fastgetattr and heap_getattr to inline functions

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: e27f4ee0a701854daf16ac1d044f20d28a17053e
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2022-03-24T17:02:27Z
Releases: 15.0
Change fastgetattr and heap_getattr to inline functions

They were macros previously, but recent callsite additions made Coverity
complain about one of the assertions being always true.  This change
could have been made a long time ago, but the Coverity complain broke
the inertia.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Japin Li <japinli@hotmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/202203241021.uts52sczx3al@alvherre.pgsql

Files

PathChange+/−
src/backend/access/heap/heapam.c modified +0 −46
src/include/access/htup_details.h modified +69 −82

Discussion