• T
    Restructure LOCKTAG as per discussions of a couple months ago. · 3a694bb0
    Tom Lane 提交于
    Essentially, we shoehorn in a lockable-object-type field by taking
    a byte away from the lockmethodid, which can surely fit in one byte
    instead of two.  This allows less artificial definitions of all the
    other fields of LOCKTAG; we can get rid of the special pg_xactlock
    pseudo-relation, and also support locks on individual tuples and
    general database objects (including shared objects).  None of those
    possibilities are actually exploited just yet, however.
    
    I removed pg_xactlock from pg_class, but did not force initdb for
    that change.  At this point, relkind 's' (SPECIAL) is unused and
    could be removed entirely.
    3a694bb0
lock.h 14.0 KB