| От | Bruno Wolff III |
|---|---|
| Тема | Re: pg and transactions |
| Дата | |
| Msg-id | 20021228191326.GA10551@wolff.to обсуждение исходный текст |
| Ответ на | pg and transactions (pginfo <pginfo@t1.unisoftbg.com>) |
| Список | pgsql-general |
On Sat, Dec 28, 2002 at 16:13:17 +0100, pginfo <pginfo@t1.unisoftbg.com> wrote: > > Actualy I use the table as a simple counter for unique values and I > expect that Connection2 will wait until Connection1 finish the task. > Is it normal for pg to work so with transactions? > If yes how can I lock all the tables after beginning the transaction? > If no where can I make mistake? If you just want a unique value use sequences. They will be faster. You didn't provide the exact commands you used in your test. Without seeing them it is hard to tell what you might have done wrong.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера