Re: Too many serialization errors in production

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Too many serialization errors in production
Дата
Msg-id 28176.1555509222@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Too many serialization errors in production  (pavan95 <pavan.postgresdba@gmail.com>)
Ответы Re: Too many serialization errors in production  (pavan95 <pavan.postgresdba@gmail.com>)
Список pgsql-admin
pavan95 <pavan.postgresdba@gmail.com> writes:
> We are facing the error "*could not serialize due to concurrent update*" too
> many times in our production server.

Why do you think there are too many?  For an app that's depending on
isolation levels above Read Committed, that's an expected behavior.

> My concern here is if I change this isolation level to "Read Committed" will
> this suffice to stop this error occurrence?

You wouldn't see any more of those errors, but almost certainly you'd
have broken the application.  Presumably, it's depending on retrying
serialization failures to ensure consistency across concurrent updates.
Without the retries, such cases would likely soon lead to inconsistent
data.

> Could you please suggest me how to stop any user from changing the
> default_transaction_isolation in PostgreSQL?

That's a spectacularly bad idea.

            regards, tom lane



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

Предыдущее
От: Nsengiyumva Ramadhan
Дата:
Сообщение:
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance killed with FDW when using CAST.