-
- Downloads
Recommend wrappers of PG_DETOAST_DATUM_PACKED().
When commit 3e23b68d 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.
Showing
- doc/src/sgml/xfunc.sgml 19 additions, 13 deletionsdoc/src/sgml/xfunc.sgml
- src/include/c.h 5 additions, 4 deletionssrc/include/c.h
- src/include/fmgr.h 21 additions, 13 deletionssrc/include/fmgr.h
- src/include/postgres.h 12 additions, 14 deletionssrc/include/postgres.h
- src/include/utils/inet.h 3 additions, 2 deletionssrc/include/utils/inet.h
- src/tutorial/funcs_new.c 16 additions, 13 deletionssrc/tutorial/funcs_new.c
Loading
Please register or sign in to comment