Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbec745

Browse files
committed
Fix spelling errors and typos in comments
Author: Daniel Gustafsson <daniel@yesql.se>
1 parent8610c97 commitfbec745

File tree

32 files changed

+34
-34
lines changed

32 files changed

+34
-34
lines changed

‎src/backend/access/nbtree/nbtsearch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ _bt_search(Relation rel, int keysz, ScanKey scankey, bool nextkey,
184184

185185
/*
186186
* If we're asked to lock leaf in write mode, but didn't manage to, then
187-
* relock. That mayhappend when root page appears to be leaf.
187+
* relock. That mayhappen when the root page appears to be leaf.
188188
*/
189189
if (access==BT_WRITE&&page_access==BT_READ)
190190
{

‎src/backend/access/transam/xact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ AssignTransactionId(TransactionState s)
487487

488488
/*
489489
* Ensure parent(s) have XIDs, so that a child always has an XID later
490-
* than its parent.Musn't recurse here, or we might get a stack overflow
490+
* than its parent.Mustn't recurse here, or we might get a stack overflow
491491
* if we're at the bottom of a huge stack of subtransactions none of which
492492
* have XIDs yet.
493493
*/

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
834834
if (OidIsValid(defaultPartOid))
835835
defaultRel=heap_open(defaultPartOid,AccessExclusiveLock);
836836

837-
/*Tranform the bound values */
837+
/*Transform the bound values */
838838
pstate=make_parsestate(NULL);
839839
pstate->p_sourcetext=queryString;
840840

‎src/backend/executor/execExprInterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
16221622

16231623
/*
16241624
* Evaluate aggregate transition / combine function that has a
1625-
* by-value transition type. That's aseperate case from the
1625+
* by-value transition type. That's aseparate case from the
16261626
* by-reference implementation because it's a bit simpler.
16271627
*/
16281628
EEO_CASE(EEOP_AGG_PLAIN_TRANS_BYVAL)

‎src/backend/executor/execPartition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ ExecCleanupTupleRouting(ModifyTableState *mtstate,
852852
{
853853
ResultRelInfo*resultRelInfo=proute->partitions[i];
854854

855-
/* skip furtherprocesssing for uninitialized partitions */
855+
/* skip furtherprocessing for uninitialized partitions */
856856
if (resultRelInfo==NULL)
857857
continue;
858858

‎src/backend/jit/llvm/llvmjit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ llvm_optimize_module(LLVMJitContext *context, LLVMModuleRef module)
438438

439439
if (context->base.flags&PGJIT_OPT3)
440440
{
441-
/* TODO: Unscientifically determinedthreshhold */
441+
/* TODO: Unscientifically determinedthreshold */
442442
LLVMPassManagerBuilderUseInlinerWithThreshold(llvm_pmb,512);
443443
}
444444
else
@@ -853,7 +853,7 @@ llvm_split_symbol_name(const char *name, char **modname, char **funcname)
853853
{
854854
/*
855855
* Symbol names cannot contain a ., therefore we can split based on
856-
* first and lastoccurance of one.
856+
* first and lastoccurrence of one.
857857
*/
858858
*funcname=rindex(name,'.');
859859
(*funcname)++;/* jump over . */

‎src/backend/optimizer/plan/createplan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* and Group, which need these values to be available in their inputs.
6666
*
6767
* CP_IGNORE_TLIST specifies that the caller plans to replace the targetlist,
68-
* and therefore itdoens't matter a bit what target list gets generated.
68+
* and therefore itdoesn't matter a bit what target list gets generated.
6969
*/
7070
#defineCP_EXACT_TLIST0x0001/* Plan must return specified tlist */
7171
#defineCP_SMALL_TLIST0x0002/* Prefer narrower tlists */

‎src/backend/port/tas/sunstudio_sparc.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
pg_atomic_cas:
2727

2828
!"cas" only works on sparcv9and sparcv8plus chips,and
29-
!requies a compiler targeting these CPUs. It will fail
29+
!requires a compiler targeting these CPUs. It will fail
3030
! on a compiler targeting sparcv8,and of course willnot
3131
! be understood by a sparcv8 CPU. gcc continues to use
3232
!"ldstub" because it targets sparcv7.

‎src/backend/storage/ipc/dsm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ dsm_set_control_handle(dsm_handle h)
429429
* If there is a non-NULL CurrentResourceOwner, the new segment is associated
430430
* with it and must be detached before the resource owner releases, or a
431431
* warning will be logged. If CurrentResourceOwner is NULL, the segment
432-
* remains attached untilexplicitely detached or the session ends.
432+
* remains attached untilexplicitly detached or the session ends.
433433
* Creating with a NULL CurrentResourceOwner is equivalent to creating
434434
* with a non-NULL CurrentResourceOwner and then calling dsm_pin_mapping.
435435
*/
@@ -527,7 +527,7 @@ dsm_create(Size size, int flags)
527527
* If there is a non-NULL CurrentResourceOwner, the attached segment is
528528
* associated with it and must be detached before the resource owner releases,
529529
* or a warning will be logged. Otherwise the segment remains attached until
530-
*explicitely detached or the session ends. See the note atop dsm_create().
530+
*explicitly detached or the session ends. See the note atop dsm_create().
531531
*/
532532
dsm_segment*
533533
dsm_attach(dsm_handleh)

‎src/backend/storage/ipc/latch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ WaitEventSetWait(WaitEventSet *set, long timeout,
10301030
/*
10311031
* Wait using linux's epoll_wait(2).
10321032
*
1033-
* This is thepreferrable wait method, as several readiness notifications are
1033+
* This is thepreferable wait method, as several readiness notifications are
10341034
* delivered, without having to iterate through all of set->events. The return
10351035
* epoll_event struct contain a pointer to our events, making association
10361036
* easy.

‎src/backend/utils/adt/formatting.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,7 @@ to_timestamp(PG_FUNCTION_ARGS)
37063706

37073707
/* ----------
37083708
* TO_DATE
3709-
*Make Date from date_str which isformated at argument 'fmt'
3709+
*Make Date from date_str which isformatted at argument 'fmt'
37103710
* ----------
37113711
*/
37123712
Datum

‎src/backend/utils/adt/jsonb_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ compareJsonbScalarValue(JsonbValue *aScalar, JsonbValue *bScalar)
13631363

13641364

13651365
/*
1366-
* Functions for manipulating theresizeable buffer used by convertJsonb and
1366+
* Functions for manipulating theresizable buffer used by convertJsonb and
13671367
* its subroutines.
13681368
*/
13691369

‎src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5040,7 +5040,7 @@ iterate_jsonb_values(Jsonb *jb, uint32 flags, void *state,
50405040

50415041
/*
50425042
* Just recursively iterating over jsonb and call callback on all
5043-
*correspoding elements
5043+
*corresponding elements
50445044
*/
50455045
while ((type=JsonbIteratorNext(&it,&v, false))!=WJB_DONE)
50465046
{

‎src/backend/utils/cache/attoptcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include"utils/syscache.h"
2525

2626

27-
/* Hash table forinformations about each attribute's options */
27+
/* Hash table forinformation about each attribute's options */
2828
staticHTAB*AttoptCacheHash=NULL;
2929

3030
/* attrelid and attnum form the lookup key, and must appear first */

‎src/backend/utils/cache/relfilenodemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include"utils/relfilenodemap.h"
3030
#include"utils/relmapper.h"
3131

32-
/* Hash table forinformations about each relfilenode <-> oid pair */
32+
/* Hash table forinformation about each relfilenode <-> oid pair */
3333
staticHTAB*RelfilenodeMapHash=NULL;
3434

3535
/* built first time through in InitializeRelfilenodeMap */

‎src/backend/utils/cache/typcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ assign_record_type_identifier(Oid type_id, int32 typmod)
18691869
}
18701870

18711871
/*
1872-
* Return theamout of shmem required to hold a SharedRecordTypmodRegistry.
1872+
* Return theamount of shmem required to hold a SharedRecordTypmodRegistry.
18731873
* This exists only to avoid exposing private innards of
18741874
* SharedRecordTypmodRegistry in a header.
18751875
*/

‎src/bin/pgbench/t/002_pgbench_no_server.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ sub pgbench_scripts
158158
]
159159
],
160160

161-
#loging sub-options
161+
#logging sub-options
162162
[
163163
'sampling => log','--sampling-rate=0.01',
164164
[qr{log sampling .* only when}]

‎src/include/replication/worker_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ typedef struct LogicalRepWorker
2727
/* Indicates if this slot is used or free. */
2828
boolin_use;
2929

30-
/* Increasedeverytime the slot is taken by new worker. */
30+
/* Increasedevery time the slot is taken by new worker. */
3131
uint16generation;
3232

3333
/* Pointer to proc array. NULL if not running. */

‎src/interfaces/ecpg/preproc/check_rules.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22
# src/interfaces/ecpg/preproc/check_rules.pl
3-
# test parsergenerater for ecpg
3+
# test parsergenerator for ecpg
44
# call with backend parser as stdin
55
#
66
# Copyright (c) 2009-2018, PostgreSQL Global Development Group

‎src/interfaces/ecpg/preproc/parse.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22
# src/interfaces/ecpg/preproc/parse.pl
3-
# parsergenerater for ecpg version 2
3+
# parsergenerator for ecpg version 2
44
# call with backend parser as stdin
55
#
66
# Copyright (c) 2007-2018, PostgreSQL Global Development Group

‎src/test/examples/testlibpq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ main(int argc, char **argv)
4848
exit_nicely(conn);
4949
}
5050

51-
/* Set always-secure search path, somalicous users can't take control. */
51+
/* Set always-secure search path, somalicious users can't take control. */
5252
res=PQexec(conn,
5353
"SELECT pg_catalog.set_config('search_path', '', false)");
5454
if (PQresultStatus(res)!=PGRES_TUPLES_OK)

‎src/test/examples/testlibpq2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ main(int argc, char **argv)
7777
exit_nicely(conn);
7878
}
7979

80-
/* Set always-secure search path, somalicous users can't take control. */
80+
/* Set always-secure search path, somalicious users can't take control. */
8181
res=PQexec(conn,
8282
"SELECT pg_catalog.set_config('search_path', '', false)");
8383
if (PQresultStatus(res)!=PGRES_TUPLES_OK)

‎src/test/examples/testlibpq3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ main(int argc, char **argv)
142142
exit_nicely(conn);
143143
}
144144

145-
/* Set always-secure search path, somalicous users can't take control. */
145+
/* Set always-secure search path, somalicious users can't take control. */
146146
res=PQexec(conn,"SET search_path = testlibpq3");
147147
if (PQresultStatus(res)!=PGRES_COMMAND_OK)
148148
{

‎src/test/examples/testlibpq4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ check_prepare_conn(PGconn *conn, const char *dbName)
3434
exit(1);
3535
}
3636

37-
/* Set always-secure search path, somalicous users can't take control. */
37+
/* Set always-secure search path, somalicious users can't take control. */
3838
res=PQexec(conn,
3939
"SELECT pg_catalog.set_config('search_path', '', false)");
4040
if (PQresultStatus(res)!=PGRES_TUPLES_OK)

‎src/test/examples/testlo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ main(int argc, char **argv)
232232
exit_nicely(conn);
233233
}
234234

235-
/* Set always-secure search path, somalicous users can't take control. */
235+
/* Set always-secure search path, somalicious users can't take control. */
236236
res=PQexec(conn,
237237
"SELECT pg_catalog.set_config('search_path', '', false)");
238238
if (PQresultStatus(res)!=PGRES_TUPLES_OK)

‎src/test/examples/testlo64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ main(int argc, char **argv)
256256
exit_nicely(conn);
257257
}
258258

259-
/* Set always-secure search path, somalicous users can't take control. */
259+
/* Set always-secure search path, somalicious users can't take control. */
260260
res=PQexec(conn,
261261
"SELECT pg_catalog.set_config('search_path', '', false)");
262262
if (PQresultStatus(res)!=PGRES_TUPLES_OK)

‎src/test/regress/expected/foreign_key.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ ALTER TABLE fk_partitioned_fk ADD FOREIGN KEY (a, b)
14761476
REFERENCES fk_notpartitioned_pk NOT VALID;
14771477
ERROR: cannot add NOT VALID foreign key on partitioned table "fk_partitioned_fk" referencing relation "fk_notpartitioned_pk"
14781478
DETAIL: This feature is not yet supported on partitioned tables.
1479-
-- these inserts,targetting both the partition directly as well as the
1479+
-- these inserts,targeting both the partition directly as well as the
14801480
-- partitioned table, should all fail
14811481
INSERT INTO fk_partitioned_fk (a,b) VALUES (500, 501);
14821482
ERROR: insert or update on table "fk_partitioned_fk_1" violates foreign key constraint "fk_partitioned_fk_a_fkey"

‎src/test/regress/expected/privileges.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ SELECT '{1}'::int4[]::int8[];
738738
(1 row)
739739

740740
REVOKE ALL ON FUNCTION int8(integer) FROM PUBLIC;
741-
SELECT '{1}'::int4[]::int8[]; --superuser,suceed
741+
SELECT '{1}'::int4[]::int8[]; --superuser,succeed
742742
int8
743743
------
744744
{1}

‎src/test/regress/sql/foreign_key.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ ALTER TABLE ONLY fk_partitioned_fk ADD FOREIGN KEY (a, b)
11151115
ALTERTABLE fk_partitioned_fk ADDFOREIGN KEY (a, b)
11161116
REFERENCES fk_notpartitioned_pk NOT VALID;
11171117

1118-
-- these inserts,targetting both the partition directly as well as the
1118+
-- these inserts,targeting both the partition directly as well as the
11191119
-- partitioned table, should all fail
11201120
INSERT INTO fk_partitioned_fk (a,b)VALUES (500,501);
11211121
INSERT INTO fk_partitioned_fk_1 (a,b)VALUES (500,501);

‎src/test/regress/sql/privileges.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ GRANT ALL PRIVILEGES ON LANGUAGE sql TO PUBLIC;
495495
BEGIN;
496496
SELECT'{1}'::int4[]::int8[];
497497
REVOKE ALLON FUNCTION int8(integer)FROM PUBLIC;
498-
SELECT'{1}'::int4[]::int8[];--superuser,suceed
498+
SELECT'{1}'::int4[]::int8[];--superuser,succeed
499499
SET SESSION AUTHORIZATION regress_priv_user4;
500500
SELECT'{1}'::int4[]::int8[];--other user, fail
501501
ROLLBACK;

‎src/test/subscription/t/004_sync.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# add new table on subscriber
117117
$node_subscriber->safe_psql('postgres',"CREATE TABLE tab_rep_next (a int)");
118118

119-
# setup structure with existing data onpubisher
119+
# setup structure with existing data onpublisher
120120
$node_publisher->safe_psql('postgres',
121121
"CREATE TABLE tab_rep_next (a) AS SELECT generate_series(1,10)");
122122

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ sub mkvcbuild
630630
{
631631

632632
# Some builds exhibit runtime failure through Perl warning
633-
# 'Can't spawn "conftest.exe"';supress that.
633+
# 'Can't spawn "conftest.exe"';suppress that.
634634
no warnings;
635635

636636
# Disable error dialog boxes like we do in the postmaster.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp