Fix typos in two comments. Spotted by Brendan Jurd
This commit is contained in:
parent
ffda674769
commit
aedc5ed571
src/include
@ -11,7 +11,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.54 2007/09/22 04:41:19 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.55 2007/09/27 21:01:59 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -158,7 +158,7 @@ extern void fmgr_info_copy(FmgrInfo *dstinfo, FmgrInfo *srcinfo,
|
||||
* The resulting datum can be accessed using VARSIZE_ANY() and VARDATA_ANY()
|
||||
* (beware of multiple evaluations in those macros!)
|
||||
*
|
||||
* WARNING: It is only safe to use PG_DETOAST_DATUM_UNPACKED() and
|
||||
* WARNING: It is only safe to use pg_detoast_datum_packed() and
|
||||
* VARDATA_ANY() if you really don't care about the alignment. Either because
|
||||
* you're working with something like text where the alignment doesn't matter
|
||||
* or because you're not going to access its constituent parts and just use
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1995, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/postgres.h,v 1.82 2007/07/25 12:22:53 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/include/postgres.h,v 1.83 2007/09/27 21:01:59 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -237,7 +237,7 @@ typedef struct
|
||||
* code that specifically wants to work with still-toasted Datums.
|
||||
*
|
||||
* WARNING: It is only safe to use VARDATA_ANY() -- typically with
|
||||
* PG_DETOAST_DATUM_UNPACKED() -- if you really don't care about the alignment.
|
||||
* PG_DETOAST_DATUM_PACKED() -- if you really don't care about the alignment.
|
||||
* Either because you're working with something like text where the alignment
|
||||
* doesn't matter or because you're not going to access its constituent parts
|
||||
* and just use things like memcpy on it anyways.
|
||||
|
Loading…
x
Reference in New Issue
Block a user