diff options
author | David Rowley <drowley@postgresql.org> | 2023-04-18 13:23:23 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2023-04-18 13:23:23 +1200 |
commit | b4dbf3e924b2556acbe103dc61ac71f9985ff24f (patch) | |
tree | 179232a4dbf525790273dfbdd3a4f58e30225d56 /src/include | |
parent | e39d512f3e9b1e34ffba77c8fe120c2675f6873b (diff) | |
download | postgresql-b4dbf3e924b2556acbe103dc61ac71f9985ff24f.tar.gz |
Fix various typos
This fixes many spelling mistakes in comments, but a few references to
invalid parameter names, function names and option names too in comments
and also some in string constants
Also, fix an #undef that was undefining the incorrect definition
Author: Alexander Lakhin
Reviewed-by: Justin Pryzby
Discussion: https://postgr.es/m/d5f68d19-c0fc-91a9-118d-7c6a5a3f5fad@gmail.com
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/rmgrdesc_utils.h | 2 | ||||
-rw-r--r-- | src/include/port/pg_iovec.h | 2 | ||||
-rw-r--r-- | src/include/regex/regcustom.h | 2 | ||||
-rw-r--r-- | src/include/utils/memutils_memorychunk.h | 4 | ||||
-rw-r--r-- | src/include/utils/tuplesort.h | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/include/access/rmgrdesc_utils.h b/src/include/access/rmgrdesc_utils.h index e09b112674..bd414699f2 100644 --- a/src/include/access/rmgrdesc_utils.h +++ b/src/include/access/rmgrdesc_utils.h @@ -63,4 +63,4 @@ extern void offset_elem_desc(StringInfo buf, void *offset, void *data); extern void redirect_elem_desc(StringInfo buf, void *offset, void *data); extern void oid_elem_desc(StringInfo buf, void *relid, void *data); -#endif /* RMGRDESC_UTILS_H */ +#endif /* RMGRDESC_UTILS_H_ */ diff --git a/src/include/port/pg_iovec.h b/src/include/port/pg_iovec.h index 2a0e2c0123..689799c425 100644 --- a/src/include/port/pg_iovec.h +++ b/src/include/port/pg_iovec.h @@ -36,7 +36,7 @@ struct iovec #define PG_IOV_MAX Min(IOV_MAX, 32) /* - * Note that pg_preadv and pg_writev have a pg_ prefix as a warning that the + * Note that pg_preadv and pg_pwritev have a pg_ prefix as a warning that the * Windows implementations have the side-effect of changing the file position. */ diff --git a/src/include/regex/regcustom.h b/src/include/regex/regcustom.h index bedee1e9ca..af0fe97c79 100644 --- a/src/include/regex/regcustom.h +++ b/src/include/regex/regcustom.h @@ -44,7 +44,7 @@ #include "mb/pg_wchar.h" -#include "miscadmin.h" /* needed by stacktoodeep */ +#include "miscadmin.h" /* needed by rstacktoodeep */ /* overrides for regguts.h definitions, if any */ diff --git a/src/include/utils/memutils_memorychunk.h b/src/include/utils/memutils_memorychunk.h index 2439ba4e96..ffa91131c8 100644 --- a/src/include/utils/memutils_memorychunk.h +++ b/src/include/utils/memutils_memorychunk.h @@ -37,8 +37,8 @@ * In some cases, for example when memory allocations become large, it's * possible fields 3 and 4 above are not large enough to store the values * required for the chunk. In this case, the MemoryContext can choose to mark - * the chunk as "external" by calling the MemoryChunkSetExternal() function. - * When this is done, fields 3 and 4 are unavailable for use by the + * the chunk as "external" by calling the MemoryChunkSetHdrMaskExternal() + * function. When this is done, fields 3 and 4 are unavailable for use by the * MemoryContext and it's up to the MemoryContext itself to devise its own * method for getting the reference to the block. * diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h index 395abfe596..656a2e9897 100644 --- a/src/include/utils/tuplesort.h +++ b/src/include/utils/tuplesort.h @@ -146,7 +146,7 @@ typedef int (*SortTupleComparator) (const SortTuple *a, const SortTuple *b, /* * The public part of a Tuple sort operation state. This data structure - * containsthe definition of sort-variant-specific interface methods and + * contains the definition of sort-variant-specific interface methods and * the part of Tuple sort operation state required by their implementations. */ typedef struct @@ -189,7 +189,7 @@ typedef struct * Function to do some specific release of resources for the sort variant. * In particular, this function should free everything stored in the "arg" * field, which wouldn't be cleared on reset of the Tuple sort memory - * contextes. This can be NULL if nothing specific needs to be done. + * contexts. This can be NULL if nothing specific needs to be done. */ void (*freestate) (Tuplesortstate *state); |