• Alvaro Herrera's avatar
    Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the · cec3b0a9
    Alvaro Herrera authored
    process of dropping roles by dropping objects owned by them and privileges
    granted to them, or giving the owned objects to someone else, through the
    use of the data stored in the new pg_shdepend catalog.
    
    Some refactoring of the GRANT/REVOKE code was needed, as well as ALTER OWNER
    code.  Further cleanup of code duplication in the GRANT code seems necessary.
    
    Implemented by me after an idea from Tom Lane, who also provided various kind
    of implementation advice.
    
    Regression tests pass.  Some tests for the new functionality are also added,
    as well as rudimentary documentation.
    cec3b0a9
reference.sgml 4.55 KB