• Alvaro Herrera's avatar
    Add SQL-callable pg_get_object_address · d7ee82e5
    Alvaro Herrera authored
    This allows access to get_object_address from SQL, which is useful to
    obtain OID addressing information from data equivalent to that emitted
    by the parser.  This is necessary infrastructure of a project to let
    replication systems propagate object dropping events to remote servers,
    where the schema might be different than the server originating the
    DROP.
    
    This patch also adds support for OBJECT_DEFAULT to get_object_address;
    that is, it is now possible to refer to a column's default value.
    
    Catalog version bumped due to the new function.
    
    Reviewed by Stephen Frost, Heikki Linnakangas, Robert Haas, Andres
    Freund, Abhijit Menon-Sen, Adam Brightwell.
    d7ee82e5
pg_proc.h 504 KB