java - How to define lock wait time for Postgres 9.0? -
I am doing some testing to evaluate the framework for our DAO layer. In the case of an exam, it is to check how a table lock repeats and how the framework behaves in such a situation. This test is used in Java and primarily JPA, being Hibernate and using Eclipse links as JPA vendors, we are only using hibernate and we have a set of interfaces that can be used for any other ORM structure. Contrary to functioning as the framework for reducing our test. / P>
I have successfully prepared a table lock test case against our MySQL 5.5.11 database, because the accredited testing case is just 50 seconds (default value for lock waiting time in MySQL) and then table lock waiting timeout Appeared in the SQLException log associated with the exception. Then I changed the configuration of the test to link to the 9G postgraze and then completed the test, I could repeat the table lock, but now applications were frozen for just 10 minutes, and no exception was thrown , So I have to stop the test execution.
How can I change this time for Postgraduate 9.0 and getting results for Postgrad 9.3 here: under lock_timeout Then I checked the document for 9.0 and such parameters are not available. Do you know how can I change it in Postgre configuration or in my Java client application, possibly to check a JPA or Hibernate or Eclipselink specific configuration to table lock exceptions from the database? The worst case scenario is that a table lock appears in the production environment and we can not fix it until the application closes (which we are testing with frameworks). Try it - it has been around for many years.
SET statement_timeout = 1000; - Try to lock, and receive an exception 1000ms later
Comments
Post a Comment