]> granicus.if.org Git - postgresql/commit
Recommend wrappers of PG_DETOAST_DATUM_PACKED().
authorNoah Misch <noah@leadboat.com>
Sun, 12 Mar 2017 23:35:33 +0000 (19:35 -0400)
committerNoah Misch <noah@leadboat.com>
Sun, 12 Mar 2017 23:35:33 +0000 (19:35 -0400)
commit9d7726c2ba06b932f791f2d0cc5acf73cc0b4dca
treea67dc4573e6e89d07be29c41679ce821009df9a3
parent944a026b4ec252667f275768ba4dcd53ae3bb07e
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.
doc/src/sgml/xfunc.sgml
src/include/c.h
src/include/fmgr.h
src/include/postgres.h
src/include/utils/inet.h
src/tutorial/funcs_new.c