diff options
author | David Rowley | 2023-04-18 01:23:23 +0000 |
---|---|---|
committer | David Rowley | 2023-04-18 01:23:23 +0000 |
commit | b4dbf3e924b2556acbe103dc61ac71f9985ff24f (patch) | |
tree | 179232a4dbf525790273dfbdd3a4f58e30225d56 /contrib | |
parent | e39d512f3e9b1e34ffba77c8fe120c2675f6873b (diff) |
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/[email protected]
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/amcheck/verify_heapam.c | 2 | ||||
-rw-r--r-- | contrib/pg_walinspect/pg_walinspect.c | 2 | ||||
-rw-r--r-- | contrib/postgres_fdw/connection.c | 2 | ||||
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/contrib/amcheck/verify_heapam.c b/contrib/amcheck/verify_heapam.c index f50ee9d29f7..34d73ad442f 100644 --- a/contrib/amcheck/verify_heapam.c +++ b/contrib/amcheck/verify_heapam.c @@ -1009,7 +1009,7 @@ check_tuple_header(HeapCheckContext *ctx) * TOAST tuples -- are eligible for pruning. * * Sets *xmin_commit_status_ok to true if the commit status of xmin is known - * and false otherwise. If it's set to true, then also set *xid_commit_status + * and false otherwise. If it's set to true, then also set *xmin_commit_status * to the actual commit status. */ static bool diff --git a/contrib/pg_walinspect/pg_walinspect.c b/contrib/pg_walinspect/pg_walinspect.c index e4dbf15e05d..e6f18e1c644 100644 --- a/contrib/pg_walinspect/pg_walinspect.c +++ b/contrib/pg_walinspect/pg_walinspect.c @@ -401,7 +401,7 @@ GetWALBlockInfo(FunctionCallInfo fcinfo, XLogReaderState *record, values, nulls); } -#undef PG_GET_WAL_FPI_BLOCK_COLS +#undef PG_GET_WAL_BLOCK_INFO_COLS } /* diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c index 75d93d6eadf..da32d503bc5 100644 --- a/contrib/postgres_fdw/connection.c +++ b/contrib/postgres_fdw/connection.c @@ -1686,7 +1686,7 @@ pgfdw_abort_cleanup(ConnCacheEntry *entry, bool toplevel) * * Returns true if the abort command or cancel request is successfully issued, * false otherwise. If the abort command is successfully issued, the given - * connection cache entry is appended to *pending_entries. Othewise, if the + * connection cache entry is appended to *pending_entries. Otherwise, if the * cancel request is successfully issued, it is appended to *cancel_requested. */ static bool diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index d728bd70b31..95dbe8b06cc 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -5016,7 +5016,7 @@ postgresGetAnalyzeInfoForForeignTable(Relation relation, bool *can_tablesample) pgfdw_report_error(ERROR, res, conn, false, sql.data); if (PQntuples(res) != 1 || PQnfields(res) != 2) - elog(ERROR, "unexpected result from deparseAnalyzeTuplesSql query"); + elog(ERROR, "unexpected result from deparseAnalyzeInfoSql query"); reltuples = strtod(PQgetvalue(res, 0, 0), NULL); relkind = *(PQgetvalue(res, 0, 1)); } |