]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Make spelling consistent
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 5 May 2026 07:36:54 +0000 (09:36 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 5 May 2026 07:36:54 +0000 (09:36 +0200)
"vertexes" -> "vertices"

Reported-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAJTYsWXFy1j_T82%2BM_S9kFxU414tQYnZQD-b82%3DoL_LbG_5fPQ%40mail.gmail.com

src/backend/commands/propgraphcmds.c
src/backend/rewrite/rewriteGraphTable.c
src/test/regress/expected/graph_table.out
src/test/regress/sql/graph_table.sql

index 6d509fccf46baa687c3ca0b28d1ad647f771aa2c..48284b84db9137416472101af77762ef38d2bf16 100644 (file)
@@ -419,7 +419,7 @@ propgraph_edge_get_ref_keys(ParseState *pstate, const List *keycols, const List
                         * strategies.
                         *
                         * If the required operators do not exist, we can not construct
-                        * quals linking an edge to its adjacent vertexes.
+                        * quals linking an edge to its adjacent vertices.
                         */
                        get_atttypetypmodcoll(RelationGetRelid(edge_rel), keyattnums[i], &keytype, &keytypmod, &keycoll);
                        get_atttypetypmodcoll(RelationGetRelid(ref_rel), refattnums[i], &reftype, &reftypmod, &refcoll);
@@ -456,7 +456,7 @@ propgraph_edge_get_ref_keys(ParseState *pstate, const List *keycols, const List
                        /*
                         * If collations of key attribute and referenced attribute are
                         * different, an edge may end up being adjacent to undesired
-                        * vertexes.  Prohibit such a case.
+                        * vertices.  Prohibit such a case.
                         *
                         * PK/FK allows different collations as long as they are
                         * deterministic for backward compatibility. But we can be a bit
index 6867de6d53af8bfd7af1e1fe4e5c564b1f48a2e2..33d4e866d7435033c9063c65751073e92bfc4ce0 100644 (file)
@@ -153,7 +153,7 @@ rewriteGraphTable(Query *parsetree, int rt_index)
  * returned.
  *
  * Between every two vertex elements in the path there is an edge element that
- * connects them.  An edge connects two vertexes identified by the source and
+ * connects them.  An edge connects two vertices identified by the source and
  * destination keys respectively. The connection between an edge and its
  * adjacent vertex is naturally computed as an equi-join between edge and vertex
  * table on their respective keys. Hence the query representing one path
@@ -274,7 +274,7 @@ generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern)
                 *
                 * If multiple edge patterns share the same variable name, they
                 * constrain the adjacent vertex patterns since an edge can connect
-                * only one pair of vertexes. These adjacent vertex patterns need to
+                * only one pair of vertices. These adjacent vertex patterns need to
                 * be merged even though they have different variables. Such element
                 * patterns form a walk of graph where vertex and edges are repeated.
                 * For example, in (a)-[b]->(c)<-[b]-(d), (a) and (d) represent the
@@ -289,7 +289,7 @@ generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern)
                                if (prev_pf->dest_pf && prev_pf->dest_pf != pf)
                                        ereport(ERROR,
                                                        errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                                                       errmsg("an edge cannot connect more than two vertexes even in a cyclic pattern"));
+                                                       errmsg("an edge cannot connect more than two vertices even in a cyclic pattern"));
                                prev_pf->dest_pf = pf;
                        }
                        else if (prev_pf->kind == EDGE_PATTERN_LEFT)
@@ -298,7 +298,7 @@ generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern)
                                if (prev_pf->src_pf && prev_pf->src_pf != pf)
                                        ereport(ERROR,
                                                        errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                                                       errmsg("an edge cannot connect more than two vertexes even in a cyclic pattern"));
+                                                       errmsg("an edge cannot connect more than two vertices even in a cyclic pattern"));
                                prev_pf->src_pf = pf;
                        }
                        else
@@ -313,7 +313,7 @@ generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern)
                                if (pf->src_pf && pf->src_pf != prev_pf)
                                        ereport(ERROR,
                                                        errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                                                       errmsg("an edge cannot connect more than two vertexes even in a cyclic pattern"));
+                                                       errmsg("an edge cannot connect more than two vertices even in a cyclic pattern"));
                                pf->src_pf = prev_pf;
                        }
                        else if (pf->kind == EDGE_PATTERN_LEFT)
@@ -322,7 +322,7 @@ generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern)
                                if (pf->dest_pf && pf->dest_pf != prev_pf)
                                        ereport(ERROR,
                                                        errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                                                       errmsg("an edge cannot connect more than two vertexes even in a cyclic pattern"));
+                                                       errmsg("an edge cannot connect more than two vertices even in a cyclic pattern"));
                                pf->dest_pf = prev_pf;
                        }
                        else
index ea9c0f6112ee243a2954e2f9258bd79a8bbcd7f0..cc6d80afd82ea6e032483833f18301729736303a 100644 (file)
@@ -310,7 +310,7 @@ CREATE PROPERTY GRAPH g1
     VERTEX TABLES (
         v1
             LABEL vl1 PROPERTIES (vname, vprop1)
-            LABEL l1 PROPERTIES (vname AS elname), -- label shared by vertexes as well as edges
+            LABEL l1 PROPERTIES (vname AS elname), -- label shared by vertices as well as edges
         v2 KEY (id1, id2)
             LABEL vl2 PROPERTIES (vname, vprop2, 'vl2_prop'::varchar(10) AS lprop1)
             LABEL vl3 PROPERTIES (vname, vprop1, 'vl2_prop'::varchar(10) AS lprop1)
@@ -637,7 +637,7 @@ SELECT * FROM GRAPH_TABLE (g1 MATCH (a)-[b]->(a)-[b]->(a) COLUMNS (a.vname AS se
 (1 row)
 
 SELECT * FROM GRAPH_TABLE (g1 MATCH (a)-[b]->(c)-[b]->(d) COLUMNS (a.vname AS aname, b.ename AS bname, c.vname AS cname, d.vname AS dname)); --error
-ERROR:  an edge cannot connect more than two vertexes even in a cyclic pattern
+ERROR:  an edge cannot connect more than two vertices even in a cyclic pattern
 -- the looping edge should be reported only once even when edge pattern with any direction is used
 SELECT * FROM GRAPH_TABLE (g1 MATCH (a)-[c]-(a) COLUMNS (a.vname AS self, c.ename AS loop_name));
  self | loop_name 
@@ -905,7 +905,7 @@ SELECT * FROM GRAPH_TABLE (g4 MATCH (s IS ptnv)-[e IS ptne]->(d IS ptnv) COLUMNS
   30 | 300 |  10
 (3 rows)
 
--- edges from the same vertex in both directions connecting to other vertexes in the same table
+-- edges from the same vertex in both directions connecting to other vertices in the same table
 SELECT * FROM GRAPH_TABLE (g4 MATCH (s)-[e]-(d) WHERE s.id = 3 COLUMNS (s.val, e.val, d.val)) ORDER BY 1, 2, 3;
  val | val | val 
 -----+-----+-----
index dd35aa794e5063150b1d669845cf2950be502859..0e381ec72bce32880b530bbae50dc7757e05313c 100644 (file)
@@ -215,7 +215,7 @@ CREATE PROPERTY GRAPH g1
     VERTEX TABLES (
         v1
             LABEL vl1 PROPERTIES (vname, vprop1)
-            LABEL l1 PROPERTIES (vname AS elname), -- label shared by vertexes as well as edges
+            LABEL l1 PROPERTIES (vname AS elname), -- label shared by vertices as well as edges
         v2 KEY (id1, id2)
             LABEL vl2 PROPERTIES (vname, vprop2, 'vl2_prop'::varchar(10) AS lprop1)
             LABEL vl3 PROPERTIES (vname, vprop1, 'vl2_prop'::varchar(10) AS lprop1)
@@ -519,7 +519,7 @@ CREATE PROPERTY GRAPH g4
             DESTINATION KEY (dest) REFERENCES ptnv(id)
     );
 SELECT * FROM GRAPH_TABLE (g4 MATCH (s IS ptnv)-[e IS ptne]->(d IS ptnv) COLUMNS (s.val, e.val, d.val)) ORDER BY 1, 2, 3;
--- edges from the same vertex in both directions connecting to other vertexes in the same table
+-- edges from the same vertex in both directions connecting to other vertices in the same table
 SELECT * FROM GRAPH_TABLE (g4 MATCH (s)-[e]-(d) WHERE s.id = 3 COLUMNS (s.val, e.val, d.val)) ORDER BY 1, 2, 3;
 SELECT * FROM GRAPH_TABLE (g4 MATCH (s WHERE s.id = 3)-[e]-(d) COLUMNS (s.val, e.val, d.val)) ORDER BY 1, 2, 3;