How to disable the deadlock process in PostgreSQL, postgresql Process
The PostgreSQL database used has no information. Google had to proceed.
Finally, a solution was found in an English forum.
As follows:
1. Retrieve the ID of the deadlock
Source: amutu. comblog201306hive-metastore-db-postgresqlHIVE metadata uses derby as the storage DB by default, derby as the lightweight DB, it is more convenient to use in the development and testing process, but in the actual production environment,
Today, a strange phenomenon is encountered, the Select and delete tables are executed normally, but the truncate and drop tables are always running without error.Check some information to find out the cause of the problem, summarized as
Due to the use of the PostgreSQL database, there is no data. Had to do Google.
Finally found a solution in an English forum.
As follows:
1. Retrieves the ID of the deadlock process
Copy Code code as follows:
SELECT * from
--Query blocked SQL (deadlock, no SQL executed through) SELECT * from Pg_stat_activity AA, (select A.locktype,a.database,a.pid,a.mode,a.relation, B.relname from Pg_locks a joins Pg_class B on A.relation=b.oid where upper (b.relname) = '
The default database for hive is Derby, and this database is for self-debugging, but it's a bit of a challenge to face a lot of data, so next I'm going to swap derby for PostgreSQL, and I'll talk about what to look for in the replacement process.
All messages sent by the PostgreSQL server are given a five-character error code that follows the custom of the SQL "SQLSTATE" code. Apps that need to know what error conditions are occurring should usually test the error code instead of the text
OriginWhen a strange phenomenon occurs, the Select and delete tables are executed normally, but the truncate and drop tables run all the time, and no error is encountered.Reason"Drop table" and "TRUNCATE TABLE" need to apply for exclusive lock
Concurrency control is the key technology of DBMS, concurrency control technology is also called synchronization mechanism, and its implementation usually relies on the underlying concurrency control mechanism. The operating system provides a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.