Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> I just noticed that this uses the current database Id in the LOCKTAG ...
> I think I'll just make it use InvalidOid, as we will only use it to lock
> shared objects by now. It can be changed when (and if) we need
> different semantics in the future.
In that case call it LockSharedObject, or something like that.
regards, tom lane