| От | Adrian Klaver |
|---|---|
| Тема | Re: How to isolate the result of SELECT's? |
| Дата | |
| Msg-id | 4F667C06.2020400@gmail.com обсуждение исходный текст |
| Ответ на | How to isolate the result of SELECT's? (Andre Lopes <lopes80andre@gmail.com>) |
| Список | pgsql-general |
On 03/18/2012 04:33 PM, Andre Lopes wrote: > Hi, > > I need to do an operation that I will use some SELECT's and get the > results, but I want to have sure that those tables have not been > changed with INSERT's or UPDATES during the operation. > > Example: > > BEGIN OPERATION > Select field from table1; > ... > Select other_field from table2; > ... > END OPERATION > > How can I lock these tables to assure that the tables are not getting > INSERTS's or UPDATE's during the operation? Rather than replicate the docs in a post, I suggest you take a look at: http://www.postgresql.org/docs/9.1/interactive/mvcc.html It explains the various options you have very well. > > Best Regards, > -- Adrian Klaver adrian.klaver@gmail.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера