Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
Дата
Msg-id 55439214.6080506@iki.fi
обсуждение исходный текст
Ответ на Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
On 04/30/2015 11:09 PM, Peter Geoghegan wrote:
> I've been unable to reproduce the unprincipled deadlock using the same
> test case as before. However, the exclusion constraint code now
> livelocks. Here is example output from a stress-testing session:
>
>...
>
> [Fri May  1 04:45:35 2015] normal exit at 1430455535 after 128000
> items processed at count_upsert_exclusion.pl line 192.
> trying 128 clients:
> [Fri May  1 04:45:58 2015] NOTICE:  extension "btree_gist" already
> exists, skipping
> [Fri May  1 04:45:58 2015] init done at count_upsert_exclusion.pl line 106.
>
>
> (I ssh into server, check progress). Then, due to some issue with the
> scheduler or something, progress continues:
>
> [Fri May  1 05:17:57 2015] sum is 462
> [Fri May  1 05:17:57 2015] count is 8904
> [Fri May  1 05:17:58 2015] normal exit at 1430457478 after 128000
> items processed at count_upsert_exclusion.pl line 192.
> trying 128 clients:

Hmm, so it was stuck for half an hour at that point? Why do you think it 
was a livelock?

> This is the same server that I shared credentials with you for. Feel
> free to ssh in and investigate it yourself.

I logged in, but the system seems very unresponsive in general. I just 
started "apt-get install gdb" on it, to investigate what the backends 
are stuck at. It's been running for about 30 minutes now, and I'm still 
waiting...

- Heikki




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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Reducing tuple overhead
Следующее
От: Andres Freund
Дата:
Сообщение: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0