{"id":20816,"date":"2024-01-02T06:25:23","date_gmt":"2024-01-02T06:25:23","guid":{"rendered":"https:\/\/server.hk\/blog\/20816\/"},"modified":"2024-11-14T10:38:06","modified_gmt":"2024-11-14T02:38:06","slug":"how-to-fix-postgresql-error-code-08007-transaction_resolution_unknown","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/20816\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown"},"content":{"rendered":"<h1 id=\"how-to-fix-postgresql-error-code-08007-transaction_resolution_unknown\">\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown<\/h1>\n<p>PostgreSQL \u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u88ab\u5168\u7403\u7684\u958b\u767c\u8005\u548c\u4f01\u696d\u4f7f\u7528\u3002\u7136\u800c\uff0c\u8207\u5176\u4ed6\u8edf\u4ef6\u4e00\u6a23\uff0c\u5b83\u4e26\u975e\u514d\u75ab\u65bc\u932f\u8aa4\u548c\u554f\u984c\u3002\u5176\u4e2d\u4e00\u500b\u7528\u6236\u53ef\u80fd\u6703\u9047\u5230\u7684\u932f\u8aa4\u662f PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u542b\u7fa9\uff0c\u4e26\u63d0\u4f9b\u89e3\u6c7a\u65b9\u6cd5\u3002<\/p>\n<p>PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown \u767c\u751f\u5728\u6578\u64da\u5eab\u670d\u52d9\u5668\u7121\u6cd5\u89e3\u6790\u67d0\u500b\u4ea4\u6613\u6642\u3002\u9019\u53ef\u80fd\u7531\u591a\u7a2e\u539f\u56e0\u5f15\u8d77\uff0c\u4f8b\u5982\u7db2\u7d61\u554f\u984c\u3001\u8207\u5176\u4ed6\u4ea4\u6613\u7684\u885d\u7a81\uff0c\u6216\u6578\u64da\u5eab\u672c\u8eab\u7684\u554f\u984c\u3002\u7576\u6b64\u932f\u8aa4\u767c\u751f\u6642\uff0c\u6703\u4e2d\u65b7\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\uff0c\u4e26\u5f71\u97ff\u4f9d\u8cf4\u5b83\u7684\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n<p>\u8981\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown\uff0c\u8acb\u6309\u4ee5\u4e0b\u6b65\u9a5f\u64cd\u4f5c\uff1a<\/p>\n<h3>1. \u6aa2\u67e5 PostgreSQL \u65e5\u8a8c<\/h3>\n<p>\u89e3\u6c7a\u4efb\u4f55 PostgreSQL \u932f\u8aa4\u7684\u7b2c\u4e00\u6b65\u662f\u6aa2\u67e5\u670d\u52d9\u5668\u65e5\u8a8c\u3002\u65e5\u8a8c\u53ef\u4ee5\u63d0\u4f9b\u95dc\u65bc\u932f\u8aa4\u539f\u56e0\u7684\u5bf6\u8cb4\u4fe1\u606f\u3002\u67e5\u627e\u8207 transaction_resolution_unknown \u932f\u8aa4\u76f8\u95dc\u7684\u932f\u8aa4\u6d88\u606f\u6216\u8b66\u544a\u3002\u65e5\u8a8c\u901a\u5e38\u4f4d\u65bc PostgreSQL \u7684\u6578\u64da\u76ee\u9304\u4e2d\u3002<\/p>\n<h3>2. \u91cd\u555f PostgreSQL \u670d\u52d9<\/h3>\n<p>\u6709\u6642\u5019\uff0c\u7c21\u55ae\u5730\u91cd\u555f PostgreSQL \u670d\u52d9\u5c31\u80fd\u89e3\u6c7a transaction_resolution_unknown \u932f\u8aa4\u3002\u4f7f\u7528\u9069\u7576\u7684\u547d\u4ee4\u6216\u670d\u52d9\u7ba1\u7406\u5668\u91cd\u555f PostgreSQL \u670d\u52d9\u3002\u91cd\u555f\u5f8c\uff0c\u76e3\u63a7\u65e5\u8a8c\u4ee5\u67e5\u770b\u932f\u8aa4\u662f\u5426\u4ecd\u7136\u5b58\u5728\u3002<\/p>\n<h3>3. \u6aa2\u67e5\u7db2\u7d61\u9023\u63a5<\/h3>\n<p>\u78ba\u4fdd\u61c9\u7528\u7a0b\u5f0f\u670d\u52d9\u5668\u8207 PostgreSQL \u6578\u64da\u5eab\u670d\u52d9\u5668\u4e4b\u9593\u6c92\u6709\u7db2\u7d61\u9023\u63a5\u554f\u984c\u3002\u6aa2\u67e5\u6578\u64da\u5eab\u670d\u52d9\u5668\u662f\u5426\u53ef\u4ee5\u5f9e\u61c9\u7528\u7a0b\u5f0f\u670d\u52d9\u5668\u8a2a\u554f\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002\u5982\u679c\u5b58\u5728\u4efb\u4f55\u7db2\u7d61\u554f\u984c\uff0c\u89e3\u6c7a\u5b83\u5011\u4ee5\u6392\u9664\u932f\u8aa4\u7531\u7db2\u7d61\u554f\u984c\u5f15\u8d77\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<h3>4. \u89e3\u6c7a\u8207\u5176\u4ed6\u4ea4\u6613\u7684\u885d\u7a81<\/h3>\n<p>\u5982\u679c\u8207\u5176\u4ed6\u4ea4\u6613\u767c\u751f\u885d\u7a81\uff0c\u4e5f\u53ef\u80fd\u6703\u5c0e\u81f4 transaction_resolution_unknown \u932f\u8aa4\u3002\u6aa2\u67e5\u662f\u5426\u5b58\u5728\u9577\u6642\u9593\u904b\u884c\u6216\u885d\u7a81\u7684\u4ea4\u6613\uff0c\u9019\u4e9b\u53ef\u80fd\u5c0e\u81f4\u932f\u8aa4\u3002\u4f7f\u7528\u9069\u7576\u7684 PostgreSQL \u547d\u4ee4\u4f86\u8b58\u5225\u548c\u89e3\u6c7a\u9019\u4e9b\u885d\u7a81\u3002<\/p>\n<h3>5. \u9a57\u8b49\u6578\u64da\u5eab\u5b8c\u6574\u6027<\/h3>\n<p>\u6b64\u932f\u8aa4\u4e5f\u53ef\u80fd\u662f\u7531\u6578\u64da\u5eab\u672c\u8eab\u7684\u554f\u984c\u5f15\u8d77\u7684\u3002\u4f7f\u7528\u9069\u7576\u7684 PostgreSQL \u547d\u4ee4\u5c0d\u6578\u64da\u5eab\u9032\u884c\u5fb9\u5e95\u7684\u5b8c\u6574\u6027\u6aa2\u67e5\u3002\u5982\u679c\u767c\u73fe\u4efb\u4f55\u5b8c\u6574\u6027\u554f\u984c\uff0c\u8acb\u4fee\u5fa9\u5b83\u5011\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u6b63\u5e38\u904b\u884c\u3002<\/p>\n<h3>6. \u66f4\u65b0 PostgreSQL<\/h3>\n<p>\u78ba\u4fdd\u4f60\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7248\u672c\u7684 PostgreSQL\u3002\u820a\u7248\u672c\u53ef\u80fd\u5b58\u5728\u5df2\u77e5\u7684\u554f\u984c\u6216\u6f0f\u6d1e\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4 transaction_resolution_unknown \u932f\u8aa4\u3002\u5347\u7d1a\u5230\u6700\u65b0\u7684\u7a69\u5b9a\u7248\u672c\u4e26\u76e3\u63a7\u7cfb\u7d71\u4ee5\u67e5\u770b\u662f\u5426\u6709\u4efb\u4f55\u6539\u5584\u3002<\/p>\n<p>\u901a\u904e\u9075\u5faa\u9019\u4e9b\u6b65\u9a5f\uff0c\u4f60\u61c9\u8a72\u80fd\u5920\u89e3\u6c7a PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown\u3002\u7136\u800c\uff0c\u5982\u679c\u932f\u8aa4\u4ecd\u7136\u5b58\u5728\uff0c\u6216\u8005\u4f60\u5c0d\u9019\u4e9b\u6b65\u9a5f\u611f\u5230\u4e0d\u78ba\u5b9a\uff0c\u5efa\u8b70\u5c0b\u6c42 PostgreSQL \u5c08\u5bb6\u7684\u5354\u52a9\u6216\u67e5\u95b1\u5b98\u65b9\u7684 PostgreSQL \u6587\u6a94\u3002<\/p>\n<h2>\u7e3d\u7d50<\/h2>\n<p>\u7e3d\u800c\u8a00\u4e4b\uff0cPostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown \u53ef\u80fd\u662f\u4e00\u500b\u4ee4\u4eba\u6cae\u55aa\u7684\u554f\u984c\u3002\u7136\u800c\uff0c\u901a\u904e\u6b63\u78ba\u7684\u6545\u969c\u6392\u9664\u6b65\u9a5f\u548c\u7cfb\u7d71\u5316\u7684\u8655\u7406\u65b9\u6cd5\uff0c\u9019\u500b\u554f\u984c\u53ef\u4ee5\u5f97\u5230\u89e3\u6c7a\u3002\u8a18\u5f97\u5728\u9032\u884c\u4efb\u4f55\u66f4\u6539\u4e4b\u524d\u5099\u4efd\u4f60\u7684\u6578\u64da\u5eab\uff0c\u5982\u679c\u6709\u9700\u8981\uff0c\u8acb\u5c0b\u6c42\u5c08\u696d\u5e6b\u52a9\u3002<\/p>\n<h3>\u7e3d\u7d50\uff1a<\/h3>\n<p>\u5982\u679c\u4f60\u9047\u5230 PostgreSQL \u932f\u8aa4\u4ee3\u78bc: 08007 &#8211; transaction_resolution_unknown\uff0c\u91cd\u8981\u7684\u662f\u7acb\u5373\u63a1\u53d6\u884c\u52d5\u4f86\u89e3\u6c7a\u554f\u984c\u3002\u6309\u7167\u672c\u6587\u5217\u51fa\u7684\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\u3002\u5982\u679c\u4f60\u9700\u8981\u53ef\u9760\u4e14\u9ad8\u6027\u80fd\u7684 VPS \u8a17\u7ba1\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e <a href=\"https:\/\/server.hk\">Server.HK<\/a>\u3002\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u8a17\u7ba1\u670d\u52d9\u5c08\u70ba\u4f01\u696d\u548c\u958b\u767c\u8005\u8a2d\u8a08\uff0c\u63d0\u4f9b\u5353\u8d8a\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u7acb\u5373\u806f\u7e6b\u6211\u5011\uff0c\u4e86\u89e3\u66f4\u591a\u95dc\u65bc\u6211\u5011\u7684\u8a17\u7ba1\u89e3\u6c7a\u65b9\u6848\u53ca\u5982\u4f55\u5e6b\u52a9\u4f60\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4fee\u5fa9 PostgreSQL &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-20816","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/20816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=20816"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/20816\/revisions"}],"predecessor-version":[{"id":24266,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/20816\/revisions\/24266"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=20816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=20816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=20816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}