| От | Bill Moran |
|---|---|
| Тема | Re: Slow response of PostgreSQL |
| Дата | |
| Msg-id | 4032CC2B.9030208@potentialtech.com обсуждение исходный текст |
| Ответ на | Re: Slow response of PostgreSQL ("scott.marlowe" <scott.marlowe@ihs.com>) |
| Список | pgsql-performance |
scott.marlowe wrote: > On Wed, 18 Feb 2004, Christopher Kings-Lynne wrote: > >>>>>1- How can I lock a single record so that other users can only read >>>>>it. ?? >>>> >>>> >>>>You cannot do that in PostgreSQL. >>> >>> >>>How about SELECT ... FOR UPDATE? >> >>No, because users cannot read the locked row in that case. > > I just tested it (within transactions) and it appeared that I could still > view the rows selected for update. Thank you. I was just about to test it myself. The user's guide, section 9.3.2 states that this is the case: i.e. select for update will prevent concurrent updating of the row, while allowing queries utilizing that row to succeed. -- Bill Moran Potential Technologies http://www.potentialtech.com
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера