mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Fix various typos in code and tests
Most of these are recent, and the documentation portions are new as of v16 so there is no need for a backpatch. Author: Justin Pryzby Discussion: https://postgr.es/m/20230208155644.GM1653@telsasoft.com
This commit is contained in:
parent
30b789eafe
commit
ef7002dbe0
@ -2412,7 +2412,7 @@ deparseAnalyzeInfoSql(StringInfo buf, Relation rel)
|
|||||||
*
|
*
|
||||||
* We could also do "ORDER BY random() LIMIT x", which would always pick
|
* We could also do "ORDER BY random() LIMIT x", which would always pick
|
||||||
* the expected number of rows, but it requires sorting so it may be much
|
* the expected number of rows, but it requires sorting so it may be much
|
||||||
* more expensive (particularly on large tables, which is what what the
|
* more expensive (particularly on large tables, which is what the
|
||||||
* remote sampling is meant to improve).
|
* remote sampling is meant to improve).
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -718,7 +718,7 @@ include_dir 'conf.d'
|
|||||||
<para>
|
<para>
|
||||||
Determines the number of connection <quote>slots</quote> that are
|
Determines the number of connection <quote>slots</quote> that are
|
||||||
reserved for connections by roles with privileges of the
|
reserved for connections by roles with privileges of the
|
||||||
<link linkend="predefined-roles-table"><literal>pg_used_reserved_connections</literal></link>
|
<link linkend="predefined-roles-table"><literal>pg_use_reserved_connections</literal></link>
|
||||||
role. Whenever the number of free connection slots is greater than
|
role. Whenever the number of free connection slots is greater than
|
||||||
<xref linkend="guc-superuser-reserved-connections"/> but less than or
|
<xref linkend="guc-superuser-reserved-connections"/> but less than or
|
||||||
equal to the sum of <varname>superuser_reserved_connections</varname>
|
equal to the sum of <varname>superuser_reserved_connections</varname>
|
||||||
|
@ -89,7 +89,7 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable>
|
|||||||
The role name of the user who will own the new database,
|
The role name of the user who will own the new database,
|
||||||
or <literal>DEFAULT</literal> to use the default (namely, the
|
or <literal>DEFAULT</literal> to use the default (namely, the
|
||||||
user executing the command). To create a database owned by another
|
user executing the command). To create a database owned by another
|
||||||
role, you must must be able to <literal>SET ROLE</literal> to that
|
role, you must be able to <literal>SET ROLE</literal> to that
|
||||||
role.
|
role.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -89,7 +89,7 @@ CREATE SCHEMA IF NOT EXISTS AUTHORIZATION <replaceable class="parameter">role_sp
|
|||||||
<para>
|
<para>
|
||||||
The role name of the user who will own the new schema. If omitted,
|
The role name of the user who will own the new schema. If omitted,
|
||||||
defaults to the user executing the command. To create a schema
|
defaults to the user executing the command. To create a schema
|
||||||
owned by another role, you must must be able to
|
owned by another role, you must be able to
|
||||||
<literal>SET ROLE</literal> to that role.
|
<literal>SET ROLE</literal> to that role.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -3090,7 +3090,7 @@ dbase_redo(XLogReaderState *record)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* There's a case where the copy source directory is missing for the
|
* There's a case where the copy source directory is missing for the
|
||||||
* same reason above. Create the emtpy source directory so that
|
* same reason above. Create the empty source directory so that
|
||||||
* copydir below doesn't fail. The directory will be dropped soon by
|
* copydir below doesn't fail. The directory will be dropped soon by
|
||||||
* recovery.
|
* recovery.
|
||||||
*/
|
*/
|
||||||
|
@ -134,7 +134,7 @@ ExecutorStart(QueryDesc *queryDesc, int eflags)
|
|||||||
/*
|
/*
|
||||||
* In some cases (e.g. an EXECUTE statement) a query execution will skip
|
* In some cases (e.g. an EXECUTE statement) a query execution will skip
|
||||||
* parse analysis, which means that the query_id won't be reported. Note
|
* parse analysis, which means that the query_id won't be reported. Note
|
||||||
* that it's harmless to report the query_id multiple time, as the call
|
* that it's harmless to report the query_id multiple times, as the call
|
||||||
* will be ignored if the top level query_id has already been reported.
|
* will be ignored if the top level query_id has already been reported.
|
||||||
*/
|
*/
|
||||||
pgstat_report_query_id(queryDesc->plannedstmt->queryId, false);
|
pgstat_report_query_id(queryDesc->plannedstmt->queryId, false);
|
||||||
|
@ -753,7 +753,7 @@ function_inlinable(llvm::Function &F,
|
|||||||
/* import referenced function itself */
|
/* import referenced function itself */
|
||||||
importVars.insert(referencedFunction->getName());
|
importVars.insert(referencedFunction->getName());
|
||||||
|
|
||||||
/* import referenced function and its dependants */
|
/* import referenced function and its dependents */
|
||||||
for (auto& recImportVar : recImportVars)
|
for (auto& recImportVar : recImportVars)
|
||||||
importVars.insert(recImportVar.first());
|
importVars.insert(recImportVar.first());
|
||||||
}
|
}
|
||||||
|
@ -1816,7 +1816,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
|
|||||||
fsync_fname("pg_logical/snapshots", true);
|
fsync_fname("pg_logical/snapshots", true);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now there's no way we can loose the dumped state anymore, remember this
|
* Now there's no way we can lose the dumped state anymore, remember this
|
||||||
* as a serialization point.
|
* as a serialization point.
|
||||||
*/
|
*/
|
||||||
builder->last_serialized_snapshot = lsn;
|
builder->last_serialized_snapshot = lsn;
|
||||||
|
@ -2050,9 +2050,9 @@ PhysicalConfirmReceivedLocation(XLogRecPtr lsn)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* One could argue that the slot should be saved to disk now, but that'd
|
* One could argue that the slot should be saved to disk now, but that'd
|
||||||
* be energy wasted - the worst lost information can do here is give us
|
* be energy wasted - the worst thing lost information could cause here is
|
||||||
* wrong information in a statistics view - we'll just potentially be more
|
* to give wrong information in a statistics view - we'll just potentially
|
||||||
* conservative in removing files.
|
* be more conservative in removing files.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2015,8 +2015,9 @@ BaseBackup(char *compression_algorithm, char *compression_detail,
|
|||||||
* If we write the data out to a tar file, it will be named
|
* If we write the data out to a tar file, it will be named
|
||||||
* base.tar if it's the main data directory or <tablespaceoid>.tar
|
* base.tar if it's the main data directory or <tablespaceoid>.tar
|
||||||
* if it's for another tablespace. CreateBackupStreamer() will
|
* if it's for another tablespace. CreateBackupStreamer() will
|
||||||
* arrange to add .gz to the archive name if pg_basebackup is
|
* arrange to add an extension to the archive name if
|
||||||
* performing compression.
|
* pg_basebackup is performing compression, depending on the
|
||||||
|
* compression type.
|
||||||
*/
|
*/
|
||||||
if (PQgetisnull(res, i, 0))
|
if (PQgetisnull(res, i, 0))
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ static size_t _CustomReadFunc(ArchiveHandle *AH, char **buf, size_t *buflen);
|
|||||||
* It's task is to create any extra archive context (using AH->formatData),
|
* It's task is to create any extra archive context (using AH->formatData),
|
||||||
* and to initialize the supported function pointers.
|
* and to initialize the supported function pointers.
|
||||||
*
|
*
|
||||||
* It should also prepare whatever it's input source is for reading/writing,
|
* It should also prepare whatever its input source is for reading/writing,
|
||||||
* and in the case of a read mode connection, it should load the Header & TOC.
|
* and in the case of a read mode connection, it should load the Header & TOC.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -995,7 +995,7 @@ dumpRoleMembership(PGconn *conn)
|
|||||||
fprintf(OPF, "--\n-- Role memberships\n--\n\n");
|
fprintf(OPF, "--\n-- Role memberships\n--\n\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We can't dump these GRANT commands in arbitary order, because a role
|
* We can't dump these GRANT commands in arbitrary order, because a role
|
||||||
* that is named as a grantor must already have ADMIN OPTION on the
|
* that is named as a grantor must already have ADMIN OPTION on the
|
||||||
* role for which it is granting permissions, except for the boostrap
|
* role for which it is granting permissions, except for the boostrap
|
||||||
* superuser, who can always be named as the grantor.
|
* superuser, who can always be named as the grantor.
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
* operations that can be done without branches (and thus faster) on lists
|
* operations that can be done without branches (and thus faster) on lists
|
||||||
* that use circular representation. However, it is often convenient to
|
* that use circular representation. However, it is often convenient to
|
||||||
* initialize list headers to zeroes rather than setting them up with an
|
* initialize list headers to zeroes rather than setting them up with an
|
||||||
* explicit initialization function, so we also allow the NULL initalization.
|
* explicit initialization function, so we also allow the NULL initialization.
|
||||||
*
|
*
|
||||||
* EXAMPLES
|
* EXAMPLES
|
||||||
*
|
*
|
||||||
|
@ -31,7 +31,7 @@ typedef struct PartitionDescData
|
|||||||
int nparts; /* Number of partitions */
|
int nparts; /* Number of partitions */
|
||||||
bool detached_exist; /* Are there any detached partitions? */
|
bool detached_exist; /* Are there any detached partitions? */
|
||||||
Oid *oids; /* Array of 'nparts' elements containing
|
Oid *oids; /* Array of 'nparts' elements containing
|
||||||
* partition OIDs in order of the their bounds */
|
* partition OIDs in order of their bounds */
|
||||||
bool *is_leaf; /* Array of 'nparts' elements storing whether
|
bool *is_leaf; /* Array of 'nparts' elements storing whether
|
||||||
* the corresponding 'oids' element belongs to
|
* the corresponding 'oids' element belongs to
|
||||||
* a leaf partition or not */
|
* a leaf partition or not */
|
||||||
|
@ -345,7 +345,7 @@ vector8_ssub(const Vector8 v1, const Vector8 v2)
|
|||||||
#endif /* ! USE_NO_SIMD */
|
#endif /* ! USE_NO_SIMD */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return a vector with all bits set in each lane where the the corresponding
|
* Return a vector with all bits set in each lane where the corresponding
|
||||||
* lanes in the inputs are equal.
|
* lanes in the inputs are equal.
|
||||||
*/
|
*/
|
||||||
#ifndef USE_NO_SIMD
|
#ifndef USE_NO_SIMD
|
||||||
|
@ -2566,7 +2566,7 @@ select * from at_view_2;
|
|||||||
drop view at_view_2;
|
drop view at_view_2;
|
||||||
drop view at_view_1;
|
drop view at_view_1;
|
||||||
drop table at_base_table;
|
drop table at_base_table;
|
||||||
-- check adding a column not iself requiring a rewrite, together with
|
-- check adding a column not itself requiring a rewrite, together with
|
||||||
-- a column requiring a default (bug #16038)
|
-- a column requiring a default (bug #16038)
|
||||||
-- ensure that rewrites aren't silently optimized away, removing the
|
-- ensure that rewrites aren't silently optimized away, removing the
|
||||||
-- value of the test
|
-- value of the test
|
||||||
|
@ -100,7 +100,7 @@ SELECT * FROM cp_test ORDER BY b COLLATE "C";
|
|||||||
1 | xyzzy
|
1 | xyzzy
|
||||||
(4 rows)
|
(4 rows)
|
||||||
|
|
||||||
-- utitlity functions currently not supported here
|
-- utility functions currently not supported here
|
||||||
CREATE PROCEDURE ptestx()
|
CREATE PROCEDURE ptestx()
|
||||||
LANGUAGE SQL
|
LANGUAGE SQL
|
||||||
BEGIN ATOMIC
|
BEGIN ATOMIC
|
||||||
|
@ -1635,7 +1635,7 @@ drop view at_view_2;
|
|||||||
drop view at_view_1;
|
drop view at_view_1;
|
||||||
drop table at_base_table;
|
drop table at_base_table;
|
||||||
|
|
||||||
-- check adding a column not iself requiring a rewrite, together with
|
-- check adding a column not itself requiring a rewrite, together with
|
||||||
-- a column requiring a default (bug #16038)
|
-- a column requiring a default (bug #16038)
|
||||||
|
|
||||||
-- ensure that rewrites aren't silently optimized away, removing the
|
-- ensure that rewrites aren't silently optimized away, removing the
|
||||||
|
@ -42,7 +42,7 @@ CALL ptest1s('b');
|
|||||||
|
|
||||||
SELECT * FROM cp_test ORDER BY b COLLATE "C";
|
SELECT * FROM cp_test ORDER BY b COLLATE "C";
|
||||||
|
|
||||||
-- utitlity functions currently not supported here
|
-- utility functions currently not supported here
|
||||||
CREATE PROCEDURE ptestx()
|
CREATE PROCEDURE ptestx()
|
||||||
LANGUAGE SQL
|
LANGUAGE SQL
|
||||||
BEGIN ATOMIC
|
BEGIN ATOMIC
|
||||||
|
@ -1034,7 +1034,7 @@ is( $node_subscriber->safe_psql('postgres', "SELECT * FROM s1.t ORDER BY a"),
|
|||||||
4|5|6),
|
4|5|6),
|
||||||
'two publications, publishing the same relation');
|
'two publications, publishing the same relation');
|
||||||
|
|
||||||
# Now resync the subcription, but with publications in the opposite order.
|
# Now resync the subscription, but with publications in the opposite order.
|
||||||
# The result should be the same.
|
# The result should be the same.
|
||||||
|
|
||||||
$node_subscriber->safe_psql(
|
$node_subscriber->safe_psql(
|
||||||
|
Loading…
Reference in New Issue
Block a user