Recommend wrappers of PG_DETOAST_DATUM_PACKED().
When commit 3e23b68dac006e8deb0afa327e855258df8de064 introduced
single-byte varlena headers, its fmgr.h changes presented
PG_GETARG_TEXT_PP() and PG_GETARG_TEXT_P() as equals. Its postgres.h
changes presented PG_DETOAST_DATUM_PACKED() and VARDATA_ANY() as the
exceptional case. Now, instead, firmly recommend PG_GETARG_TEXT_PP()
over PG_GETARG_TEXT_P(); likewise for other ...PP() macros. This shaves
cycles and invites consistency of style.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/9d7726c2ba06b932f791f2d0cc5acf73cc0b4dca
Modified Files
--------------
doc/src/sgml/xfunc.sgml | 32 +++++++++++++++++++-------------
src/include/c.h | 9 +++++----
src/include/fmgr.h | 34 +++++++++++++++++++++-------------
src/include/postgres.h | 26 ++++++++++++--------------
src/include/utils/inet.h | 5 +++--
src/tutorial/funcs_new.c | 29 ++++++++++++++++-------------
6 files changed, 76 insertions(+), 59 deletions(-)