Re: pg and transactions

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Artur Rataj
Дата:
Сообщение: Boolean product of rows in multiple tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.3.1: test select_having ... FAILED