Re: 8.2 beta blockers
От | Merlin Moncure |
---|---|
Тема | Re: 8.2 beta blockers |
Дата | |
Msg-id | b42b73150609181256s3a818e43ydf061ce41c04dc18@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: 8.2 beta blockers (Josh Berkus <josh@agliodbs.com>) |
Ответы |
Re: 8.2 beta blockers
|
Список | pgsql-hackers |
On 9/18/06, Josh Berkus <josh@agliodbs.com> wrote: > All, > > Is UserLocks a cool enough feature to be worth mentioning in the 8.2 PR? > If so, can someone explain it to me off-list? I still don't get what it > does ... > yes, i can explain it in detail, and am willing to kick in some documentation. it is very cool, and relatively undiscovered. email me for details. the short answer is you can do long term locking (not scoped to transaction) using the postgresql high speed internal lock engine. this allows you to bypass various locking hacks such as keeping transactions (too) long term, or maintaining a lock flag in a table, which has cleanup issues. they are great if you need to emulate pessimistic locking and transactions is an awkward fit. its up to you, the user to determine when and what to lock. i really beat on the user (advisory locks) when doing a cobol/isam conversion project. they work fabulous. merlin
В списке pgsql-hackers по дате отправления: