• Robert Haas's avatar
    Provide a way to predefine LWLock tranche IDs. · 3fed4174
    Robert Haas authored
    It's a bit cumbersome to use LWLockNewTrancheId(), because the returned
    value needs to be shared between backends so that each backend can call
    LWLockRegisterTranche() with the correct ID.  So, for built-in tranches,
    use a hard-coded value instead.
    
    This is motivated by an upcoming patch adding further built-in tranches.
    
    Andres Freund and Robert Haas
    3fed4174
lwlock.c 45 KB