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

Commit5510154

Browse files
committed
Fix a few typos in comments and variable names.
Author: Michael PaquierDiscussion:https://www.postgresql.org/message-id/20180411075223.GB19732%40paquier.xyz
1 parent95cdc77 commit5510154

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,8 +1733,8 @@ _bt_checksplitloc(FindSplitData *state,
17331733
/*
17341734
* The first item on the right page becomes the high key of the left page;
17351735
* therefore it counts against left space as well as right space. When
1736-
* index has includedattribues, then those attributes of left page high
1737-
* key will betruncate leaving that page with slightly more free space.
1736+
* index has includedattributes, then those attributes of left page high
1737+
* key will betruncated leaving that page with slightly more free space.
17381738
* However, that shouldn't affect our ability to find valid split
17391739
* location, because anyway split location should exists even without high
17401740
* key truncation.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,8 @@ btproperty(Oid index_oid, int attno,
20872087
*
20882088
*Transforms an ordinal B-tree leaf index tuple into pivot tuple to be used
20892089
*as hikey or non-leaf page tuple with downlink. Note that t_tid offset
2090-
*will be overritten in order to represent number of present tuple attributes.
2090+
*will be overwritten in order to represent number of present tuple
2091+
*attributes.
20912092
*/
20922093
IndexTuple
20932094
_bt_truncate_tuple(Relationidxrel,IndexTupleolditup)

‎src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6726,7 +6726,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
67266726
i_indexname,
67276727
i_parentidx,
67286728
i_indexdef,
6729-
i_indnnkeyatts,
6729+
i_indnkeyatts,
67306730
i_indnatts,
67316731
i_indkey,
67326732
i_indisclustered,
@@ -6952,7 +6952,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
69526952
i_indexname = PQfnumber(res, "indexname");
69536953
i_parentidx = PQfnumber(res, "parentidx");
69546954
i_indexdef = PQfnumber(res, "indexdef");
6955-
i_indnnkeyatts = PQfnumber(res, "indnkeyatts");
6955+
i_indnkeyatts = PQfnumber(res, "indnkeyatts");
69566956
i_indnatts = PQfnumber(res, "indnatts");
69576957
i_indkey = PQfnumber(res, "indkey");
69586958
i_indisclustered = PQfnumber(res, "indisclustered");
@@ -6986,7 +6986,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
69866986
indxinfo[j].dobj.namespace = tbinfo->dobj.namespace;
69876987
indxinfo[j].indextable = tbinfo;
69886988
indxinfo[j].indexdef = pg_strdup(PQgetvalue(res, j, i_indexdef));
6989-
indxinfo[j].indnkeyattrs = atoi(PQgetvalue(res, j,i_indnnkeyatts));
6989+
indxinfo[j].indnkeyattrs = atoi(PQgetvalue(res, j,i_indnkeyatts));
69906990
indxinfo[j].indnattrs = atoi(PQgetvalue(res, j, i_indnatts));
69916991
indxinfo[j].tablespace = pg_strdup(PQgetvalue(res, j, i_tablespace));
69926992
indxinfo[j].indreloptions = pg_strdup(PQgetvalue(res, j, i_indreloptions));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp