1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Fix typos in comments, code and documentation

While on it, newlines are removed from the end of two elog() strings.
The others are simple grammar mistakes.  One comment in pg_upgrade
referred incorrectly to sequences since a7e5457.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20221230231257.GI1153@telsasoft.com
Backpatch-through: 11
This commit is contained in:
Michael Paquier
2023-01-03 16:26:14 +09:00
parent 92957ed98c
commit 33ab0a2a52
23 changed files with 37 additions and 38 deletions

View File

@ -78,7 +78,7 @@ mask_unused_space(Page page)
if (pd_lower > pd_upper || pd_special < pd_upper ||
pd_lower < SizeOfPageHeaderData || pd_special > BLCKSZ)
{
elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u\n",
elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u",
pd_lower, pd_upper, pd_special);
}

View File

@ -1301,7 +1301,7 @@ spgproperty(Oid index_oid, int attno,
/*
* Currently, SP-GiST distance-ordered scans require that there be a
* distance operator in the opclass with the default types. So we assume
* that if such a operator exists, then there's a reason for it.
* that if such an operator exists, then there's a reason for it.
*/
/* First we need to know the column's opclass. */

View File

@ -816,7 +816,7 @@ llvm_session_initialize(void)
if (LLVMGetTargetFromTriple(llvm_triple, &llvm_targetref, &error) != 0)
{
elog(FATAL, "failed to query triple %s\n", error);
elog(FATAL, "failed to query triple %s", error);
}
/*

View File

@ -865,7 +865,7 @@ apply_pathtarget_labeling_to_tlist(List *tlist, PathTarget *target)
*
* The outputs of this function are two parallel lists, one a list of
* PathTargets and the other an integer list of bool flags indicating
* whether the corresponding PathTarget contains any evaluatable SRFs.
* whether the corresponding PathTarget contains any evaluable SRFs.
* The lists are given in the order they'd need to be evaluated in, with
* the "lowest" PathTarget first. So the last list entry is always the
* originally given PathTarget, and any entries before it indicate evaluation

View File

@ -11391,7 +11391,7 @@ get_opclass_name(Oid opclass, Oid actual_datatype,
/*
* generate_opclass_name
* Compute the name to display for a opclass specified by OID
* Compute the name to display for an opclass specified by OID
*
* The result includes all necessary quoting and schema-prefixing.
*/

View File

@ -1,16 +1,16 @@
/*--------------------------------------------------------------------
* guc_internals.h
* guc_internal.h
*
* Declarations shared between backend/utils/misc/guc.c and
* backend/utils/misc/guc-file.l
*
* Copyright (c) 2000-2023, PostgreSQL Global Development Group
*
* src/include/utils/guc_internals.h
* src/include/utils/guc_internal.h
*--------------------------------------------------------------------
*/
#ifndef GUC_INTERNALS_H
#define GUC_INTERNALS_H
#ifndef GUC_INTERNAL_H
#define GUC_INTERNAL_H
#include "utils/guc.h"
@ -23,4 +23,4 @@ extern void record_config_file_error(const char *errmsg,
ConfigVariable **head_p,
ConfigVariable **tail_p);
#endif /* GUC_INTERNALS_H */
#endif /* GUC_INTERNAL_H */

View File

@ -1034,7 +1034,7 @@ dumpRoleMembership(PGconn *conn)
ht = rolename_create(remaining, NULL);
/*
* Make repeated passses over the grants for this role until all have
* Make repeated passes over the grants for this role until all have
* been dumped.
*/
while (remaining > 0)

View File

@ -408,11 +408,10 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
query[0] = '\0'; /* initialize query string to empty */
/*
* Create a CTE that collects OIDs of regular user tables, including
* matviews and sequences, but excluding toast tables and indexes. We
* assume that relations with OIDs >= FirstNormalObjectId belong to the
* user. (That's probably redundant with the namespace-name exclusions,
* but let's be safe.)
* Create a CTE that collects OIDs of regular user tables and matviews,
* but excluding toast tables and indexes. We assume that relations with
* OIDs >= FirstNormalObjectId belong to the user. (That's probably
* redundant with the namespace-name exclusions, but let's be safe.)
*
* pg_largeobject contains user data that does not appear in pg_dump
* output, so we have to copy that system table. It's easiest to do that

View File

@ -162,7 +162,7 @@ typedef struct dlist_head
/*
* Doubly linked list iterator type for dlist_head and and dclist_head types.
* Doubly linked list iterator type for dlist_head and dclist_head types.
*
* Used as state in dlist_foreach() and dlist_reverse_foreach() (and the
* dclist variant thereof).

View File

@ -182,7 +182,7 @@ create table header_copytest (
b int,
c text
);
-- Make sure it works with with dropped columns
-- Make sure it works with dropped columns
alter table header_copytest drop column c;
alter table header_copytest add column c text;
copy header_copytest to stdout with (header match);

View File

@ -86,7 +86,7 @@ WARNING: TIMESTAMP(7) precision reduced to maximum allowed, 6
t
(1 row)
-- current_role/user/user is tested in rolnames.sql
-- current_role/user/user is tested in rolenames.sql
-- current database / catalog
SELECT current_catalog = current_database();
?column?

View File

@ -204,7 +204,7 @@ create table header_copytest (
b int,
c text
);
-- Make sure it works with with dropped columns
-- Make sure it works with dropped columns
alter table header_copytest drop column c;
alter table header_copytest add column c text;
copy header_copytest to stdout with (header match);

View File

@ -29,7 +29,7 @@ SELECT current_timestamp = current_timestamp(7);
SELECT localtime = localtime(7);
SELECT localtimestamp = localtimestamp(7);
-- current_role/user/user is tested in rolnames.sql
-- current_role/user/user is tested in rolenames.sql
-- current database / catalog
SELECT current_catalog = current_database();

View File

@ -257,7 +257,7 @@ The certificate file to use. Implementation is SSL backend specific.
=item keyfile => B<value>
The private key to use. Implementation is SSL backend specific.
The private key file to use. Implementation is SSL backend specific.
=item crlfile => B<value>