1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

Fix inconsistencies and typos in the tree, take 9

This addresses more issues with code comments, variable names and
unreferenced variables.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
This commit is contained in:
Michael Paquier
2019-08-05 12:14:58 +09:00
parent 75506195da
commit 8548ddc61b
80 changed files with 94 additions and 121 deletions

View File

@@ -176,7 +176,6 @@ typedef struct CopyStateData
* Working state for COPY FROM
*/
AttrNumber num_defaults;
FmgrInfo oid_in_function;
FmgrInfo *in_functions; /* array of input functions for each attrs */
Oid *typioparams; /* array of element types for in_functions */
int *defmap; /* array of default att numbers */

View File

@@ -139,7 +139,7 @@ defGetBoolean(DefElem *def)
/*
* The set of strings accepted here should match up with the
* grammar's opt_boolean production.
* grammar's opt_boolean_or_string production.
*/
if (pg_strcasecmp(sval, "true") == 0)
return true;

View File

@@ -143,7 +143,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString,
}
/*
* grammar only allows OptimizableStmt, so this check should be redundant
* grammar only allows PreparableStmt, so this check should be redundant
*/
switch (query->commandType)
{

View File

@@ -847,7 +847,7 @@ get_all_vacuum_rels(int options)
}
/*
* vacuum_set_xid_limits() -- compute oldest-Xmin and freeze cutoff points
* vacuum_set_xid_limits() -- compute oldestXmin and freeze cutoff points
*
* The output parameters are:
* - oldestXmin is the cutoff value used to distinguish whether tuples are