| От | Greg Stark |
|---|---|
| Тема | Re: Transaction and table partitioning |
| Дата | |
| Msg-id | 87y7vaqi37.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Transaction and table partitioning ("Dragan Zubac" <zubacdragan@gmail.com>) |
| Список | pgsql-hackers |
"Dragan Zubac" <zubacdragan@gmail.com> writes: > Hello > > Is it possible to use transactions with 'per sub table' locks? What I > mean,if I partition a table and use transaction on that table with > constraint,will the database lock the master table (and all subtables),or > only sub table where the data is ? Unless you're doing ALTER TABLE or something like that Postgres never locks tables. Two backends can insert into the same table at the same time and neither has to wait until the other is done. If you are updating the same record then of course one has to wait but then partitioning isn't going to help in that case. -- greg
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера