Fix double-word typos

Discussion: https://postgr.es/m/20190612184527.GA24266@alvherre.pgsql
Reviewed-by: Michaël Paquier
This commit is contained in:
Alvaro Herrera 2019-06-12 14:16:18 -04:00
parent 4f41a72275
commit b976845815
10 changed files with 13 additions and 13 deletions

View File

@ -965,7 +965,7 @@ SELECT * FROM pg_stop_backup(false, true);
backups. Moreover, because it writes a backup_label file on the backups. Moreover, because it writes a backup_label file on the
master, it can cause the master to fail to restart automatically after master, it can cause the master to fail to restart automatically after
a crash. On the other hand, the erroneous removal of a backup_label a crash. On the other hand, the erroneous removal of a backup_label
file from a backup or standby is a common mistake which can can result file from a backup or standby is a common mistake which can result
in serious data corruption. If it is necessary to use this method, in serious data corruption. If it is necessary to use this method,
the following steps may be used. the following steps may be used.
</para> </para>

View File

@ -4051,8 +4051,8 @@ dumpPublicationTable(Archive *fout, PublicationRelInfo *pubrinfo)
fmtQualifiedDumpable(tbinfo)); fmtQualifiedDumpable(tbinfo));
/* /*
* There is no point in creating drop query as drop query as the drop is * There is no point in creating drop query as the drop is done by table
* done by table drop. * drop.
*/ */
ArchiveEntry(fout, pubrinfo->dobj.catId, pubrinfo->dobj.dumpId, ArchiveEntry(fout, pubrinfo->dobj.catId, pubrinfo->dobj.dumpId,
ARCHIVE_OPTS(.tag = tag, ARCHIVE_OPTS(.tag = tag,

View File

@ -59,7 +59,7 @@
* also that a virtual tuple does not have any "system columns". * also that a virtual tuple does not have any "system columns".
* *
* The Datum/isnull arrays of a TupleTableSlot serve double duty. For virtual * The Datum/isnull arrays of a TupleTableSlot serve double duty. For virtual
* slots they they are the authoritative data. For the other builtin slots, * slots they are the authoritative data. For the other builtin slots,
* the arrays contain data extracted from the tuple. (In this state, any * the arrays contain data extracted from the tuple. (In this state, any
* pass-by-reference Datums point into the physical tuple.) The extracted * pass-by-reference Datums point into the physical tuple.) The extracted
* information is built "lazily", ie, only as needed. This serves to avoid * information is built "lazily", ie, only as needed. This serves to avoid

View File

@ -96,7 +96,7 @@ typedef struct FunctionCallInfoBaseData
} FunctionCallInfoBaseData; } FunctionCallInfoBaseData;
/* /*
* Space needed for for a FunctionCallInfoBaseData struct with sufficient space * Space needed for a FunctionCallInfoBaseData struct with sufficient space
* for `nargs` arguments. * for `nargs` arguments.
*/ */
#define SizeForFunctionCallInfo(nargs) \ #define SizeForFunctionCallInfo(nargs) \

View File

@ -69,7 +69,7 @@ typedef enum SnapshotType
SNAPSHOT_ANY, SNAPSHOT_ANY,
/* /*
* A tuple is visible iff the tuple tuple is valid as a TOAST row. * A tuple is visible iff the tuple is valid as a TOAST row.
*/ */
SNAPSHOT_TOAST, SNAPSHOT_TOAST,

View File

@ -582,7 +582,7 @@ ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsize
{ {
/* /*
* If offset is NULL, then this is the first recursive level. If not then * If offset is NULL, then this is the first recursive level. If not then
* we are in a struct in a struct and the offset is used as offset. * we are in a struct and the offset is used as offset.
*/ */
struct ECPGstruct_member *p, struct ECPGstruct_member *p,
*ind_p = NULL; *ind_p = NULL;

View File

@ -246,7 +246,7 @@ test_pattern(const test_spec *spec)
* last integer that we added to the set, plus an arbitrary constant * last integer that we added to the set, plus an arbitrary constant
* (1000). There's no point in probing the whole 0 - 2^64 range, if * (1000). There's no point in probing the whole 0 - 2^64 range, if
* only a small part of the integer space is used. We would very * only a small part of the integer space is used. We would very
* rarely hit hit values that are actually in the set. * rarely hit values that are actually in the set.
*/ */
x = (pg_lrand48() << 31) | pg_lrand48(); x = (pg_lrand48() << 31) | pg_lrand48();
x = x % (last_int + 1000); x = x % (last_int + 1000);
@ -337,8 +337,8 @@ test_single_value(uint64 value)
elog(ERROR, "intset_num_entries returned " UINT64_FORMAT ", expected 1", num_entries); elog(ERROR, "intset_num_entries returned " UINT64_FORMAT ", expected 1", num_entries);
/* /*
* Test intset_is_member() at various special values, like 0 and and * Test intset_is_member() at various special values, like 0 and maximum
* maximum possible 64-bit integer, as well as the value itself. * possible 64-bit integer, as well as the value itself.
*/ */
if (intset_is_member(intset, 0) != (value == 0)) if (intset_is_member(intset, 0) != (value == 0))
elog(ERROR, "intset_is_member failed for 0"); elog(ERROR, "intset_is_member failed for 0");

View File

@ -185,7 +185,7 @@ $monitor_stderr = '';
# kill with SIGKILL this time - we expect the backend to exit, without # kill with SIGKILL this time - we expect the backend to exit, without
# being able to emit an error error message # being able to emit an error message
$ret = TestLib::system_log('pg_ctl', 'kill', 'KILL', $pid); $ret = TestLib::system_log('pg_ctl', 'kill', 'KILL', $pid);
is($ret, 0, "killed process with KILL"); is($ret, 0, "killed process with KILL");

View File

@ -69,7 +69,7 @@ SET enable_bitmapscan = OFF;
CREATE TEMP TABLE quad_poly_tbl_ord_seq2 AS CREATE TEMP TABLE quad_poly_tbl_ord_seq2 AS
SELECT rank() OVER (ORDER BY p <-> point '123,456') n, p <-> point '123,456' dist, id SELECT rank() OVER (ORDER BY p <-> point '123,456') n, p <-> point '123,456' dist, id
FROM quad_poly_tbl WHERE p <@ polygon '((300,300),(400,600),(600,500),(700,200))'; FROM quad_poly_tbl WHERE p <@ polygon '((300,300),(400,600),(600,500),(700,200))';
-- check results results from index scan -- check results from index scan
SET enable_seqscan = OFF; SET enable_seqscan = OFF;
SET enable_indexscan = OFF; SET enable_indexscan = OFF;
SET enable_bitmapscan = ON; SET enable_bitmapscan = ON;

View File

@ -66,7 +66,7 @@ CREATE TEMP TABLE quad_poly_tbl_ord_seq2 AS
SELECT rank() OVER (ORDER BY p <-> point '123,456') n, p <-> point '123,456' dist, id SELECT rank() OVER (ORDER BY p <-> point '123,456') n, p <-> point '123,456' dist, id
FROM quad_poly_tbl WHERE p <@ polygon '((300,300),(400,600),(600,500),(700,200))'; FROM quad_poly_tbl WHERE p <@ polygon '((300,300),(400,600),(600,500),(700,200))';
-- check results results from index scan -- check results from index scan
SET enable_seqscan = OFF; SET enable_seqscan = OFF;
SET enable_indexscan = OFF; SET enable_indexscan = OFF;
SET enable_bitmapscan = ON; SET enable_bitmapscan = ON;