| От | Adrian Klaver |
|---|---|
| Тема | Re: Lock ACCESS EXCLUSIVE and Select question ! |
| Дата | |
| Msg-id | 201102281451.58263.adrian.klaver@gmail.com обсуждение |
| Ответ на | Re: Lock ACCESS EXCLUSIVE and Select question ! (Alan Acosta <zagato.gekko@gmail.com>) |
| Список | pgsql-general |
On Monday, February 28, 2011 2:39:07 pm Alan Acosta wrote: > But i have a new problem there, i have no rows for update, i create new > rows when the seats are sold, cause rarely the database knows the capacity > of the bus, number of seats, even some bus doesn't have seat number 4 for > example So how does the customer know what seat to choose? Or to put it another way, when the INSERT is done where does the seat number come from? > > :p. So i cannot SELECT FOR UPDATE no existent rows, but i still need to > :lock > > in some way in order to check if seat number X was already sold or is free > ! > > Alan Acosta -- Adrian Klaver adrian.klaver@gmail.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера