Re: advisory locks and permissions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: AgentM <agentm(at)themactionfaction(dot)com>
Cc: postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: advisory locks and permissions
Date: 2006-09-22 19:20:01
Message-ID: 9698.1158952801@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

AgentM <agentm(at)themactionfaction(dot)com> writes:
> If I want to use these locks, it seems I will have to hard-code some
> offset into each app or hash the schema name and use that as an
> offset :( In any case, I can't imagine the "wtf?" nightmares an
> accidental collision would induce.

That depends entirely on how you are choosing to assign the lock key
numbers. If you use something involving table OID, for example, there
is not a risk of collision from schema considerations.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-09-22 19:28:54 Re: advisory locks and permissions
Previous Message Tom Lane 2006-09-22 19:18:50 Re: initdb ignores invalid locale names