Commit 55101549 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix a few typos in comments and variable names.

Author: Michael Paquier
Discussion: https://www.postgresql.org/message-id/20180411075223.GB19732%40paquier.xyz
parent 95cdc77b
...@@ -1733,8 +1733,8 @@ _bt_checksplitloc(FindSplitData *state, ...@@ -1733,8 +1733,8 @@ _bt_checksplitloc(FindSplitData *state,
/* /*
* The first item on the right page becomes the high key of the left page; * The first item on the right page becomes the high key of the left page;
* therefore it counts against left space as well as right space. When * therefore it counts against left space as well as right space. When
* index has included attribues, then those attributes of left page high * index has included attributes, then those attributes of left page high
* key will be truncate leaving that page with slightly more free space. * key will be truncated leaving that page with slightly more free space.
* However, that shouldn't affect our ability to find valid split * However, that shouldn't affect our ability to find valid split
* location, because anyway split location should exists even without high * location, because anyway split location should exists even without high
* key truncation. * key truncation.
......
...@@ -2087,7 +2087,8 @@ btproperty(Oid index_oid, int attno, ...@@ -2087,7 +2087,8 @@ btproperty(Oid index_oid, int attno,
* *
* Transforms an ordinal B-tree leaf index tuple into pivot tuple to be used * Transforms an ordinal B-tree leaf index tuple into pivot tuple to be used
* as hikey or non-leaf page tuple with downlink. Note that t_tid offset * as hikey or non-leaf page tuple with downlink. Note that t_tid offset
* will be overritten in order to represent number of present tuple attributes. * will be overwritten in order to represent number of present tuple
* attributes.
*/ */
IndexTuple IndexTuple
_bt_truncate_tuple(Relation idxrel, IndexTuple olditup) _bt_truncate_tuple(Relation idxrel, IndexTuple olditup)
......
...@@ -6726,7 +6726,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables) ...@@ -6726,7 +6726,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
i_indexname, i_indexname,
i_parentidx, i_parentidx,
i_indexdef, i_indexdef,
i_indnnkeyatts, i_indnkeyatts,
i_indnatts, i_indnatts,
i_indkey, i_indkey,
i_indisclustered, i_indisclustered,
...@@ -6952,7 +6952,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables) ...@@ -6952,7 +6952,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
i_indexname = PQfnumber(res, "indexname"); i_indexname = PQfnumber(res, "indexname");
i_parentidx = PQfnumber(res, "parentidx"); i_parentidx = PQfnumber(res, "parentidx");
i_indexdef = PQfnumber(res, "indexdef"); i_indexdef = PQfnumber(res, "indexdef");
i_indnnkeyatts = PQfnumber(res, "indnkeyatts"); i_indnkeyatts = PQfnumber(res, "indnkeyatts");
i_indnatts = PQfnumber(res, "indnatts"); i_indnatts = PQfnumber(res, "indnatts");
i_indkey = PQfnumber(res, "indkey"); i_indkey = PQfnumber(res, "indkey");
i_indisclustered = PQfnumber(res, "indisclustered"); i_indisclustered = PQfnumber(res, "indisclustered");
...@@ -6986,7 +6986,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables) ...@@ -6986,7 +6986,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
indxinfo[j].dobj.namespace = tbinfo->dobj.namespace; indxinfo[j].dobj.namespace = tbinfo->dobj.namespace;
indxinfo[j].indextable = tbinfo; indxinfo[j].indextable = tbinfo;
indxinfo[j].indexdef = pg_strdup(PQgetvalue(res, j, i_indexdef)); indxinfo[j].indexdef = pg_strdup(PQgetvalue(res, j, i_indexdef));
indxinfo[j].indnkeyattrs = atoi(PQgetvalue(res, j, i_indnnkeyatts)); indxinfo[j].indnkeyattrs = atoi(PQgetvalue(res, j, i_indnkeyatts));
indxinfo[j].indnattrs = atoi(PQgetvalue(res, j, i_indnatts)); indxinfo[j].indnattrs = atoi(PQgetvalue(res, j, i_indnatts));
indxinfo[j].tablespace = pg_strdup(PQgetvalue(res, j, i_tablespace)); indxinfo[j].tablespace = pg_strdup(PQgetvalue(res, j, i_tablespace));
indxinfo[j].indreloptions = pg_strdup(PQgetvalue(res, j, i_indreloptions)); indxinfo[j].indreloptions = pg_strdup(PQgetvalue(res, j, i_indreloptions));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment