]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove apparent support for SECURITY LABEL ON PROPERTY GRAPH
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Jul 2026 09:44:55 +0000 (11:44 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Jul 2026 10:10:07 +0000 (12:10 +0200)
Commit 2f094e7ac69 added a mention of SECURITY LABEL ON PROPERTY GRAPH
to the SECURITY LABEL reference page, and it added support to psql tab
completion.  However, security labels on property graphs are not
actually supported (per SecLabelSupportsObjectType()).  The syntax
does work, but that is just a result of how gram.y is factored.  We
don't document or tab-complete the syntax of SECURITY LABEL for other
object types that are not actually supported, so it was inconsistent
to do this for property graphs.  Thus, remove this.

Reported-by: Noah Misch <noah@leadboat.com>
Discussion: https://www.postgresql.org/message-id/flat/20260704221210.08.noahmisch%40microsoft.com

doc/src/sgml/ref/security_label.sgml
src/bin/psql/tab-complete.in.c

index c112f7a08a745b7932d45580a9354eea77e7c848..aa45c0af2487b03b23f4e6e835cde1470875306a 100644 (file)
@@ -35,7 +35,6 @@ SECURITY LABEL [ FOR <replaceable class="parameter">provider</replaceable> ] ON
   MATERIALIZED VIEW <replaceable class="parameter">object_name</replaceable> |
   [ PROCEDURAL ] LANGUAGE <replaceable class="parameter">object_name</replaceable> |
   PROCEDURE <replaceable class="parameter">procedure_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
-  PROPERTY GRAPH <replaceable class="parameter">object_name</replaceable>
   PUBLICATION <replaceable class="parameter">object_name</replaceable> |
   ROLE <replaceable class="parameter">object_name</replaceable> |
   ROUTINE <replaceable class="parameter">routine_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
index e4bc2c93145c68fa166690489aca12fe8d4c05b5..49ea584cd4f9d7f4402e35c310f48d68d2d8376c 100644 (file)
@@ -5256,10 +5256,8 @@ match_previous_words(int pattern_id,
                COMPLETE_WITH("TABLE", "COLUMN", "AGGREGATE", "DATABASE", "DOMAIN",
                                          "EVENT TRIGGER", "FOREIGN TABLE", "FUNCTION",
                                          "LARGE OBJECT", "MATERIALIZED VIEW", "LANGUAGE",
-                                         "PROPERTY GRAPH", "PUBLICATION", "PROCEDURE", "ROLE", "ROUTINE", "SCHEMA",
+                                         "PUBLICATION", "PROCEDURE", "ROLE", "ROUTINE", "SCHEMA",
                                          "SEQUENCE", "SUBSCRIPTION", "TABLESPACE", "TYPE", "VIEW");
-       else if (Matches("SECURITY", "LABEL", "ON", "PROPERTY", "GRAPH"))
-               COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_propgraphs);
        else if (Matches("SECURITY", "LABEL", "ON", MatchAny, MatchAny))
                COMPLETE_WITH("IS");