Support SECURITY LABEL on databases, tablespaces, and roles.

Robert Haas <rhaas@postgresql.org>

Commit: 463f2625a5fb183b6a8925ccde98bb3889f921d9
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-07-20T17:18:24Z
Releases: 9.2.0
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.

Files