Re: Too many serialization errors in production

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pavan95 <pavan.postgresdba@xxxxxxxxx> 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





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux