mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user