This is an automated email from the ASF dual-hosted git repository.

rafsun42 pushed a commit to branch PG14
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/PG14 by this push:
     new 2b73fdf3 Remove duplicate check (#1740) (#1833)
2b73fdf3 is described below

commit 2b73fdf3f7e45d476025fad4dfe34b229adcca83
Author: John Gemignani <[email protected]>
AuthorDate: Fri May 3 15:39:57 2024 -0700

    Remove duplicate check (#1740) (#1833)
    
    This commit removes [a benign] redundant check for label validity
    
    Co-authored-by: jberzy <[email protected]>
---
 src/backend/commands/label_commands.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/backend/commands/label_commands.c 
b/src/backend/commands/label_commands.c
index 23b4219b..dbc6bb3b 100644
--- a/src/backend/commands/label_commands.c
+++ b/src/backend/commands/label_commands.c
@@ -279,12 +279,6 @@ void create_label(char *graph_name, char *label_name, char 
label_type,
                         errmsg("label name is invalid")));
     }
 
-    if (!is_valid_label(label_name, label_type))
-    {
-        ereport(ERROR, (errcode(ERRCODE_UNDEFINED_SCHEMA),
-                        errmsg("label name is invalid")));
-    }
-
     cache_data = search_graph_name_cache(graph_name);
     if (!cache_data)
     {

Reply via email to