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

Fix misc typos in comments.

Spotted mostly by Fabien Coelho.

Discussion: https://www.postgresql.org/message-id/alpine.DEB.2.21.1901230947050.16643@lancre
This commit is contained in:
Heikki Linnakangas
2019-01-23 13:39:00 +02:00
parent 77002ad375
commit 0359d83212
9 changed files with 10 additions and 10 deletions

View File

@ -132,7 +132,7 @@ pgp_parse_pkt_hdr(PullFilter *src, uint8 *tag, int *len_p, int allow_ctx)
int res; int res;
uint8 *p; uint8 *p;
/* EOF is normal here, thus we dont use GETBYTE */ /* EOF is normal here, thus we don't use GETBYTE */
res = pullf_read(src, 1, &p); res = pullf_read(src, 1, &p);
if (res < 0) if (res < 0)
return res; return res;

View File

@ -442,7 +442,7 @@ restartScanEntry:
/* /*
* Lock the entry leaf page. This is more coarse-grained than * Lock the entry leaf page. This is more coarse-grained than
* necessary, because it will conflict with any insertions that * necessary, because it will conflict with any insertions that
* land on the same leaf page, not only the exacty key we searched * land on the same leaf page, not only the exact key we searched
* for. But locking an individual tuple would require updating * for. But locking an individual tuple would require updating
* that lock whenever it moves because of insertions or vacuums, * that lock whenever it moves because of insertions or vacuums,
* which seems too complicated. * which seems too complicated.

View File

@ -1050,7 +1050,7 @@ ExecParallelRetrieveJitInstrumentation(PlanState *planstate,
MemoryContextAllocZero(planstate->state->es_query_cxt, sizeof(JitInstrumentation)); MemoryContextAllocZero(planstate->state->es_query_cxt, sizeof(JitInstrumentation));
combined = planstate->state->es_jit_worker_instr; combined = planstate->state->es_jit_worker_instr;
/* Accummulate all the workers' instrumentations. */ /* Accumulate all the workers' instrumentations. */
for (n = 0; n < shared_jit->num_workers; ++n) for (n = 0; n < shared_jit->num_workers; ++n)
InstrJitAgg(combined, &shared_jit->jit_instr[n]); InstrJitAgg(combined, &shared_jit->jit_instr[n]);

View File

@ -2685,7 +2685,7 @@ alter_identity_column_option:
; ;
PartitionBoundSpec: PartitionBoundSpec:
/* a HASH partition*/ /* a HASH partition */
FOR VALUES WITH '(' hash_partbound ')' FOR VALUES WITH '(' hash_partbound ')'
{ {
ListCell *lc; ListCell *lc;

View File

@ -150,7 +150,7 @@ typedef struct RecordCacheEntry
/* /*
* To deal with non-anonymous record types that are exchanged by backends * To deal with non-anonymous record types that are exchanged by backends
* involved in a parallel query, we also need a shared verion of the above. * involved in a parallel query, we also need a shared version of the above.
*/ */
struct SharedRecordTypmodRegistry struct SharedRecordTypmodRegistry
{ {

View File

@ -353,12 +353,12 @@ typedef struct
} CState; } CState;
/* /*
* Cache cell for zipfian_random call * Cache cell for random_zipfian call
*/ */
typedef struct typedef struct
{ {
/* cell keys */ /* cell keys */
double s; /* s - parameter of zipfan_random function */ double s; /* s - parameter of random_zipfian function */
int64 n; /* number of elements in range (max - min + 1) */ int64 n; /* number of elements in range (max - min + 1) */
double harmonicn; /* generalizedHarmonicNumber(n, s) */ double harmonicn; /* generalizedHarmonicNumber(n, s) */

View File

@ -1078,7 +1078,7 @@ typedef struct ModifyTableState
* nplans how many plans are in the array * nplans how many plans are in the array
* whichplan which plan is being executed (0 .. n-1), or a * whichplan which plan is being executed (0 .. n-1), or a
* special negative value. See nodeAppend.c. * special negative value. See nodeAppend.c.
* pruningstate details required to allow partitions to be * prune_state details required to allow partitions to be
* eliminated from the scan, or NULL if not possible. * eliminated from the scan, or NULL if not possible.
* valid_subplans for runtime pruning, valid appendplans indexes to * valid_subplans for runtime pruning, valid appendplans indexes to
* scan. * scan.

View File

@ -462,7 +462,7 @@ extern pqsigfunc pqsignal_no_restart(int signo, pqsigfunc func);
/* port/quotes.c */ /* port/quotes.c */
extern char *escape_single_quotes_ascii(const char *src); extern char *escape_single_quotes_ascii(const char *src);
/* port/wait_error.c */ /* common/wait_error.c */
extern char *wait_result_to_str(int exit_status); extern char *wait_result_to_str(int exit_status);
extern bool wait_result_is_signal(int exit_status, int signum); extern bool wait_result_is_signal(int exit_status, int signum);
extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_found); extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_found);

View File

@ -242,7 +242,7 @@ PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
*tb_depth = 0; *tb_depth = 0;
initStringInfo(&tbstr); initStringInfo(&tbstr);
/* Mimick Python traceback reporting as close as possible. */ /* Mimic Python traceback reporting as close as possible. */
appendStringInfoString(&tbstr, "Traceback (most recent call last):"); appendStringInfoString(&tbstr, "Traceback (most recent call last):");
while (tb != NULL && tb != Py_None) while (tb != NULL && tb != Py_None)
{ {