summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2007-09-27 21:01:59 +0000
committerTom Lane2007-09-27 21:01:59 +0000
commitc50e9a5f54c753b0170779983ff791326d333e79 (patch)
tree97ece3d798c5e011c3ad4d980965699aa7bc1a02
parent2285c57a5cafe9864b2c7ef107e630bf67f9aaf7 (diff)
Fix typos in two comments. Spotted by Brendan Jurd
-rw-r--r--src/include/fmgr.h2
-rw-r--r--src/include/postgres.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index a57439ee25..453e65e019 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -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
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 677d5359f1..5b5cdcba23 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -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.