Re: insert waiting

Поиск
Список
Период
Сортировка
От John Sidney-Woollett
Тема Re: insert waiting
Дата
Msg-id 4125C898.1020601@wardbrook.com
обсуждение исходный текст
Ответ на insert waiting  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
Ответы Re: insert waiting  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
Список pgsql-general
I believe foreign key constraints take an exclusive lock on the parent.
If you are inserting two child records that reference the same parent
(at the same time) one insert will block.

John Sidney-Woollett

Ulrich Wisser wrote:

> Hi,
>
> after some more debugging I found that my application does on average 3
> inserts per second. Which is not very fast, but fast enough for now. But
> now and then the whole insert proces will be stalled and drop to 0.1
> inserts per second. In the output of "ps aux Op" I see postgres in the
> state "INSERT WAITING".
>
> I have some other insert/update process running, but not on the same
> table. I am absolutely sure, that my insert process is the only one
> working on that table.
>
> Can foreign keys block inserts?
>
> TIA
>
> Ulrich
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

В списке pgsql-general по дате отправления:

Предыдущее
От: Ulrich Wisser
Дата:
Сообщение: Re: Problems using count() with a join - trying to format
Следующее
От: Ulrich Wisser
Дата:
Сообщение: Re: insert waiting