public inbox for [email protected]  
help / color / mirror / Atom feed
Typo fixes in Graph table files
3+ messages / 3 participants
[nested] [flat]

* Typo fixes in Graph table files
@ 2026-04-15 06:58  Lakshmi N <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Lakshmi N @ 2026-04-15 06:58 UTC (permalink / raw)
  To: [email protected] <[email protected]>

Hi Hackers,

Fixed a few typos in the graph table files and attached a patch.
Please review.

Regards,
Lakshmi


Attachments:

  [application/octet-stream] 0001-fix-typos.patch (2.8K, 3-0001-fix-typos.patch)
  download | inline diff:
From 2bfbcea8d17fe1fc8d747b84ae5e82d08a14759a Mon Sep 17 00:00:00 2001
From: Lakshmi N <[email protected]>
Date: Tue, 14 Apr 2026 23:53:14 -0700
Subject: [PATCH] fix typos

---
 src/backend/commands/propgraphcmds.c    | 4 ++--
 src/backend/parser/parse_graphtable.c   | 2 +-
 src/backend/rewrite/rewriteGraphTable.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/commands/propgraphcmds.c b/src/backend/commands/propgraphcmds.c
index 45d2ff1bbba..e94f3b0231e 100644
--- a/src/backend/commands/propgraphcmds.c
+++ b/src/backend/commands/propgraphcmds.c
@@ -414,7 +414,7 @@ propgraph_edge_get_ref_keys(ParseState *pstate, const List *keycols, const List
 			 * right operand. The method used to find the equality operators
 			 * is similar to the method used to find equality operators for
 			 * FK/PK comparison in ATAddForeignKeyConstraint() except that
-			 * opclass of the the vertex key type is used as a starting point.
+			 * opclass of the vertex key type is used as a starting point.
 			 * Since we need only equality operators we use both BT and HASH
 			 * strategies.
 			 *
@@ -1237,7 +1237,7 @@ check_element_label_properties(Oid ellabeloid)
 	table_close(rel, AccessShareLock);
 
 	/*
-	 * If there is not previous definition of this label, then we are done.
+	 * If there is no previous definition of this label, then we are done.
 	 */
 	if (!ref_ellabeloid)
 		return;
diff --git a/src/backend/parser/parse_graphtable.c b/src/backend/parser/parse_graphtable.c
index 30ddce5aa9f..78bc6d26ad1 100644
--- a/src/backend/parser/parse_graphtable.c
+++ b/src/backend/parser/parse_graphtable.c
@@ -366,7 +366,7 @@ transformPathPatternList(ParseState *pstate, List *path_pattern)
  * Transform a GraphPattern.
  *
  * A GraphPattern consists of a list of one or more path patterns and an
- * optional where clause. Transform them. We use the previously constructure
+ * optional where clause. Transform them. We use the previously constructed
  * list of variables in the GraphTableParseState to resolve property references
  * in the WHERE clause.
  */
diff --git a/src/backend/rewrite/rewriteGraphTable.c b/src/backend/rewrite/rewriteGraphTable.c
index 2c3199d3230..444afd0d042 100644
--- a/src/backend/rewrite/rewriteGraphTable.c
+++ b/src/backend/rewrite/rewriteGraphTable.c
@@ -500,7 +500,7 @@ generate_query_for_graph_path(RangeTblEntry *rte, List *graph_path)
 		 * rule 4) does not specify whose access privileges to use when
 		 * accessing the element tables: property graph owner's or current
 		 * user's. It is safer to use current user's privileges so as not to
-		 * make property graphs as a hole for unpriviledged data access. This
+		 * make property graphs as a hole for unprivileged data access. This
 		 * is inline with the views being security_invoker by default.
 		 */
 		rel = table_open(pe->reloid, AccessShareLock);
-- 
2.43.0



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Typo fixes in Graph table files
@ 2026-04-15 15:08  Ashutosh Bapat <[email protected]>
  parent: Lakshmi N <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Ashutosh Bapat @ 2026-04-15 15:08 UTC (permalink / raw)
  To: Lakshmi N <[email protected]>; +Cc: [email protected] <[email protected]>

Hi Lakshmi,

On Wed, Apr 15, 2026 at 12:28 PM Lakshmi N <[email protected]> wrote:
>
> Hi Hackers,
>
> Fixed a few typos in the graph table files and attached a patch.
> Please review.

Thanks for the report and patch.

I fixed some more typos and grammar in the attached patch. Also
simplified a comment.


--
Best Wishes,
Ashutosh Bapat


Attachments:

  [text/x-patch] v20260415-0001-Fix-typos-and-grammar-in-graph-table-rewri.patch (5.0K, 2-v20260415-0001-Fix-typos-and-grammar-in-graph-table-rewri.patch)
  download | inline diff:
From 9df7b778d7ec6ad1a11d07061d501c15fd98c614 Mon Sep 17 00:00:00 2001
From: Ashutosh Bapat <[email protected]>
Date: Wed, 15 Apr 2026 17:52:19 +0530
Subject: [PATCH v20260415 3/3] Fix typos and grammar in graph table rewrite
 code

Reported-by: Lakshmi N <[email protected]>
Author: Lakshmi N <[email protected]>
Author: Ashutosh Bapat <[email protected]>
Discussion: https://www.postgresql.org/message-id/CA+3i_M9gpUGjH-BkJk=UFjK16jq9fEQHpmZ1cxpJO+xM4hWC+A@mail.gmail.com
---
 src/backend/commands/propgraphcmds.c    | 12 ++++++------
 src/backend/rewrite/rewriteGraphTable.c | 14 +++++++-------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/backend/commands/propgraphcmds.c b/src/backend/commands/propgraphcmds.c
index 45d2ff1bbba..3842f4a711b 100644
--- a/src/backend/commands/propgraphcmds.c
+++ b/src/backend/commands/propgraphcmds.c
@@ -414,7 +414,7 @@ propgraph_edge_get_ref_keys(ParseState *pstate, const List *keycols, const List
 			 * right operand. The method used to find the equality operators
 			 * is similar to the method used to find equality operators for
 			 * FK/PK comparison in ATAddForeignKeyConstraint() except that
-			 * opclass of the the vertex key type is used as a starting point.
+			 * opclass of the vertex key type is used as a starting point.
 			 * Since we need only equality operators we use both BT and HASH
 			 * strategies.
 			 *
@@ -1045,7 +1045,7 @@ insert_property_record(Oid graphid, Oid ellabeloid, Oid pgerelid, const char *pr
  * makes it easier to share this code between CREATE PROPERTY GRAPH and ALTER
  * PROPERTY GRAPH.  We pass in the element OID so that ALTER PROPERTY GRAPH
  * only has to check the element it has just operated on.  CREATE PROPERTY
- * GROUP checks all elements it has created.
+ * GRAPH checks all elements it has created.
  */
 static void
 check_element_properties(Oid peoid)
@@ -1214,8 +1214,8 @@ check_element_label_properties(Oid ellabeloid)
 
 	/*
 	 * Find a reference element label to fetch label properties.  The
-	 * reference element label has to have the label OID as the one being
-	 * checked but be distinct from the one being checked.
+	 * reference element label has to have the same label OID as the one being
+	 * checked but a different element OID.
 	 */
 	ScanKeyInit(&key[0],
 				Anum_pg_propgraph_element_label_pgellabelid,
@@ -1237,7 +1237,7 @@ check_element_label_properties(Oid ellabeloid)
 	table_close(rel, AccessShareLock);
 
 	/*
-	 * If there is not previous definition of this label, then we are done.
+	 * If there is no previous definition of this label, then we are done.
 	 */
 	if (!ref_ellabeloid)
 		return;
@@ -1669,7 +1669,7 @@ AlterPropGraph(ParseState *pstate, const AlterPropGraphStmt *stmt)
 	/*
 	 * Invalidate relcache entry of the property graph so that the queries in
 	 * the cached plans referencing the property graph will be rewritten
-	 * considering changes to the propert graph.
+	 * considering changes to the property graph.
 	 */
 	CacheInvalidateRelcacheByRelid(pgrelid);
 
diff --git a/src/backend/rewrite/rewriteGraphTable.c b/src/backend/rewrite/rewriteGraphTable.c
index 429ef1cf1f4..918c6c7b56c 100644
--- a/src/backend/rewrite/rewriteGraphTable.c
+++ b/src/backend/rewrite/rewriteGraphTable.c
@@ -163,10 +163,10 @@ rewriteGraphTable(Query *parsetree, int rt_index)
  * done by generate_queries_for_path_pattern_recurse().
  * generate_query_for_graph_path() constructs a query for a given path.
  *
- * A path pattern may result into no path if any of the element pattern yields no
- * elements or edge patterns yield no edges connecting adjacent vertex patterns.
- * In such a case a dummy query which returns no result is returned
- * (generate_query_for_empty_path_pattern()).
+ * A path pattern may end up producing no path if any of the element patterns
+ * yields no elements or the edge patterns yield no edges connecting adjacent
+ * vertex patterns.  In such a case a dummy query which returns no result is
+ * returned (generate_query_for_empty_path_pattern()).
  *
  * 'path_pattern' is given path pattern to be applied on the property graph in
  * the GRAPH_TABLE clause represented by given 'rte'.
@@ -503,9 +503,9 @@ generate_query_for_graph_path(RangeTblEntry *rte, List *graph_path)
 		 * SQL/PGQ standard (Ref. Section 11.19, Access rule 2 and General
 		 * rule 4) does not specify whose access privileges to use when
 		 * accessing the element tables: property graph owner's or current
-		 * user's. It is safer to use current user's privileges so as not to
-		 * make property graphs as a hole for unpriviledged data access. This
-		 * is inline with the views being security_invoker by default.
+		 * user's. It is safer to use current user's privileges to avoid
+		 * unprivileged data access through a property graph. This is inline
+		 * with the views being security_invoker by default.
 		 */
 		rel = table_open(pe->reloid, AccessShareLock);
 		pni = addRangeTableEntryForRelation(make_parsestate(NULL), rel, AccessShareLock,
-- 
2.34.1



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Typo fixes in Graph table files
@ 2026-04-24 06:32  Peter Eisentraut <[email protected]>
  parent: Ashutosh Bapat <[email protected]>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2026-04-24 06:32 UTC (permalink / raw)
  To: Ashutosh Bapat <[email protected]>; Lakshmi N <[email protected]>; +Cc: [email protected] <[email protected]>

On 15.04.26 17:08, Ashutosh Bapat wrote:
> Hi Lakshmi,
> 
> On Wed, Apr 15, 2026 at 12:28 PM Lakshmi N <[email protected]> wrote:
>>
>> Hi Hackers,
>>
>> Fixed a few typos in the graph table files and attached a patch.
>> Please review.
> 
> Thanks for the report and patch.
> 
> I fixed some more typos and grammar in the attached patch. Also
> simplified a comment.

committed






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2026-04-24 06:32 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-15 06:58 Typo fixes in Graph table files Lakshmi N <[email protected]>
2026-04-15 15:08 ` Ashutosh Bapat <[email protected]>
2026-04-24 06:32   ` Peter Eisentraut <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox