Re: SELECT FOR SHARE and FOR UPDATE
От | Jim C. Nasby |
---|---|
Тема | Re: SELECT FOR SHARE and FOR UPDATE |
Дата | |
Msg-id | 20051008021800.GG36108@pervasive.com обсуждение исходный текст |
Ответ на | SELECT FOR SHARE and FOR UPDATE ("Ilja Golshtein" <ilejn@yandex.ru>) |
Ответы |
Re: SELECT FOR SHARE and FOR UPDATE
|
Список | pgsql-general |
On Fri, Oct 07, 2005 at 01:18:03PM +0400, Ilja Golshtein wrote: > Hello! > > I want to select data from two tables obtaining > exclusive lock for records of the first table and > nonexclusive lock for records of the second one. > > In other words, I need something like > select a.f, b.f from a,b for update of a for share of b. > Any hints? > > Thanks. From http://www.postgresql.org/docs/8.0/interactive/sql-select.html: FOR UPDATE [ OF table_name [, ...] ] I'm assuming that the syntax is the same for FOR SHARE. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
В списке pgsql-general по дате отправления: