summaryrefslogtreecommitdiff
path: root/src/include/commands/seclabel.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-07-20 13:18:24 -0400
committerRobert Haas <rhaas@postgresql.org>2011-07-20 13:18:24 -0400
commit463f2625a5fb183b6a8925ccde98bb3889f921d9 (patch)
treef64c17891383a1867946c82215321b6aa42f1a42 /src/include/commands/seclabel.h
parentcacd42d62cb2ddf32135b151f627780a5509780f (diff)
Support SECURITY LABEL on databases, tablespaces, and roles.
This requires a new shared catalog, pg_shseclabel. Along the way, fix the security_label regression tests so that they don't monkey with the labels of any pre-existing objects. This is unlikely to matter in practice, since only the label for the "dummy" provider was being manipulated. But this way still seems cleaner. KaiGai Kohei, with fairly extensive hacking by me.
Diffstat (limited to 'src/include/commands/seclabel.h')
-rw-r--r--src/include/commands/seclabel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/seclabel.h b/src/include/commands/seclabel.h
index 06ce602d7dc..1a0282c8ca7 100644
--- a/src/include/commands/seclabel.h
+++ b/src/include/commands/seclabel.h
@@ -21,6 +21,7 @@ extern char *GetSecurityLabel(const ObjectAddress *object,
extern void SetSecurityLabel(const ObjectAddress *object,
const char *provider, const char *label);
extern void DeleteSecurityLabel(const ObjectAddress *object);
+extern void DeleteSharedSecurityLabel(Oid objectId, Oid classId);
/*
* Statement and ESP hook support