{"id":21444,"date":"2024-01-02T09:29:22","date_gmt":"2024-01-02T09:29:22","guid":{"rendered":"https:\/\/server.hk\/blog\/21444\/"},"modified":"2024-11-14T10:34:16","modified_gmt":"2024-11-14T02:34:16","slug":"how-to-fix-postgresql-error-code-53400-configuration_limit_exceeded","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/21444\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded"},"content":{"rendered":"<h1 id=\"how-to-fix-postgresql-error-code-53400-configuration_limit_exceeded-FuGNbrInTx\">\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded<\/h1>\n<p>PostgreSQL \u662f\u4e00\u500b\u5f37\u5927\u7684\u958b\u6e90\u95dc\u806f\u6027\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5728\u5404\u7a2e\u61c9\u7528\u4e2d\u5ee3\u6cdb\u4f7f\u7528\u3002\u7136\u800c\uff0c\u8207\u4efb\u4f55\u8edf\u4ef6\u4e00\u6a23\uff0c\u5b83\u53ef\u80fd\u9047\u5230\u932f\u8aa4\uff0c\u9032\u800c\u64fe\u4e82\u5176\u6b63\u5e38\u904b\u4f5c\u3002\u5176\u4e2d\u4e00\u500b\u932f\u8aa4\u5373\u70ba PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded\u3002\u672c\u6587\u5c07\u63a2\u7d22\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u4e26\u63d0\u4f9b\u9010\u6b65\u6307\u5f15\u4ee5\u4fee\u5fa9\u5b83\u3002<\/p>\n<h2 id=\"understanding-the-error-FuGNbrInTx\">\u7406\u89e3\u9019\u500b\u932f\u8aa4<\/h2>\n<p>\u7576\u914d\u7f6e\u53c3\u6578\u7684\u6578\u91cf\u8d85\u51fa\u7cfb\u7d71\u8a2d\u5b9a\u7684\u6700\u5927\u9650\u5236\u6642\uff0c\u5373\u6703\u7522\u751f PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u5728\u60a8\u5617\u8a66\u4fee\u6539\u6216\u65b0\u589e\u4e00\u500b\u8d85\u51fa\u9810\u5b9a\u9650\u5236\u7684\u914d\u7f6e\u53c3\u6578\u6642\u767c\u751f\u3002<\/p>\n<h2 id=\"possible-causes-FuGNbrInTx\">\u53ef\u80fd\u539f\u56e0<\/h2>\n<p>\u60a8\u53ef\u80fd\u9047\u5230 configuration_limit_exceeded \u932f\u8aa4\u7684\u539f\u56e0\u6709\u5e7e\u500b\uff1a<\/p>\n<ul>\n<li><strong>\u5927\u91cf\u914d\u7f6e\u53c3\u6578\uff1a<\/strong> \u5982\u679c\u60a8\u7684 PostgreSQL \u5be6\u4f8b\u64c1\u6709\u5927\u91cf\u914d\u7f6e\u53c3\u6578\uff0c\u5c31\u66f4\u5bb9\u6613\u89f8\u53ca\u9650\u5236\u3002<\/li>\n<li><strong>\u914d\u7f6e\u4e0d\u6b63\u78ba\uff1a<\/strong> \u5982\u679c\u60a8\u8aa4\u6dfb\u52a0\u6216\u4fee\u6539\u4e86\u4e00\u500b\u8d85\u51fa\u9650\u5236\u7684\u914d\u7f6e\u53c3\u6578\uff0c\u5c31\u6703\u89f8\u767c\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u904e\u6642\u7684 PostgreSQL \u7248\u672c\uff1a<\/strong> \u820a\u7248\u7684 PostgreSQL \u53ef\u80fd\u5c0d\u914d\u7f6e\u53c3\u6578\u7684\u6578\u91cf\u6709\u66f4\u4f4e\u7684\u9650\u5236\u3002<\/li>\n<\/ul>\n<h2 id=\"fixing-the-error-FuGNbrInTx\">\u4fee\u5fa9\u932f\u8aa4<\/h2>\n<p>\u8981\u89e3\u6c7a PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<h3 id=\"step-1-identify-the-problematic-configuration-parameter-FuGNbrInTx\">\u6b65\u9a5f 1\uff1a\u8b58\u5225\u554f\u984c\u914d\u7f6e\u53c3\u6578<\/h3>\n<p>\u9996\u5148\uff0c\u8981\u627e\u51fa\u5f15\u8d77\u932f\u8aa4\u7684\u914d\u7f6e\u53c3\u6578\u3002\u60a8\u53ef\u4ee5\u6aa2\u67e5 PostgreSQL \u932f\u8aa4\u65e5\u8a8c\u6216\u89f8\u767c\u932f\u8aa4\u7684\u547d\u4ee4\u8f38\u51fa\u3002\u5c0b\u627e\u6b63\u5728\u88ab\u4fee\u6539\u6216\u65b0\u589e\u7684\u914d\u7f6e\u53c3\u6578\u3002<\/p>\n<h3 id=\"step-2-remove-or-modify-the-problematic-configuration-parameter-FuGNbrInTx\">\u6b65\u9a5f 2\uff1a\u522a\u9664\u6216\u4fee\u6539\u554f\u984c\u914d\u7f6e\u53c3\u6578<\/h3>\n<p>\u4e00\u65e6\u8b58\u5225\u51fa\u554f\u984c\u7684\u914d\u7f6e\u53c3\u6578\uff0c\u60a8\u6709\u5169\u500b\u9078\u64c7\uff1a<\/p>\n<ul>\n<li><strong>\u522a\u9664\u53c3\u6578\uff1a<\/strong> \u5982\u679c\u8a72\u914d\u7f6e\u53c3\u6578\u5c0d\u60a8\u7684\u61c9\u7528\u4e0d\u662f\u5fc5\u8981\u7684\uff0c\u60a8\u53ef\u4ee5\u5f9e\u914d\u7f6e\u6587\u4ef6\u4e2d\u522a\u9664\u5b83\u3002\u6253\u958b PostgreSQL \u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u4f4d\u65bc <code>\/etc\/postgresql\/{version}\/main\/postgresql.conf<\/code>\uff09\uff0c\u4e26\u5c07\u5305\u542b\u8a72\u53c3\u6578\u7684\u884c\u8a3b\u91cb\u6389\u6216\u522a\u9664\u5b83\u3002<\/li>\n<li><strong>\u4fee\u6539\u53c3\u6578\uff1a<\/strong> \u5982\u679c\u8a72\u914d\u7f6e\u53c3\u6578\u662f\u5fc5\u8981\u7684\uff0c\u60a8\u53ef\u4ee5\u5617\u8a66\u6e1b\u5c11\u5176\u503c\u6216\u5c0b\u627e\u66ff\u4ee3\u65b9\u6cd5\u3002\u8acb\u53c3\u95b1 PostgreSQL \u6587\u6a94\u6216\u5c0b\u6c42 PostgreSQL \u5c08\u5bb6\u7684\u5e6b\u52a9\uff0c\u78ba\u5b9a\u9069\u7576\u7684\u4fee\u6539\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<h3 id=\"step-3-restart-postgresql-FuGNbrInTx\">\u6b65\u9a5f 3\uff1a\u91cd\u65b0\u555f\u52d5 PostgreSQL<\/h3>\n<p>\u5728\u522a\u9664\u6216\u4fee\u6539\u554f\u984c\u914d\u7f6e\u53c3\u6578\u5f8c\uff0c\u60a8\u9700\u8981\u91cd\u65b0\u555f\u52d5 PostgreSQL \u670d\u52d9\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u91cd\u65b0\u555f\u52d5 PostgreSQL\uff1a<\/p>\n<pre><code>sudo service postgresql restart<\/code><\/pre>\n<h3 id=\"step-4-test-the-changes-FuGNbrInTx\">\u6b65\u9a5f 4\uff1a\u6e2c\u8a66\u66f4\u6539<\/h3>\n<p>PostgreSQL \u91cd\u65b0\u555f\u52d5\u5f8c\uff0c\u8acb\u6e2c\u8a66\u60a8\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u78ba\u4fdd\u932f\u8aa4\u5df2\u7d93\u4fee\u5fa9\u3002\u5728 PostgreSQL \u65e5\u8a8c\u4e2d\u76e3\u8996\u4efb\u4f55\u65b0\u7684\u932f\u8aa4\u6216\u8b66\u544a\uff0c\u9019\u4e9b\u53ef\u80fd\u8868\u660e\u6709\u9032\u4e00\u6b65\u554f\u984c\u3002<\/p>\n<h2 id=\"summary-FuGNbrInTx\">\u7e3d\u7d50<\/h2>\n<p>\u7e3d\u800c\u8a00\u4e4b\uff0c\u8981\u89e3\u6c7a PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a53400 &#8211; configuration_limit_exceeded\uff0c\u9700\u8981\u8b58\u5225\u4e26\u522a\u9664\u6216\u4fee\u6539\u554f\u984c\u914d\u7f6e\u53c3\u6578\u3002\u4ed4\u7d30\u6aa2\u67e5 PostgreSQL \u914d\u7f6e\uff0c\u78ba\u4fdd\u5176\u7b26\u5408\u7cfb\u7d71\u7684\u9650\u5236\u3002\u901a\u904e\u9075\u5faa\u672c\u6587\u4e2d\u6982\u8ff0\u7684\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u89e3\u6c7a\u6b64\u932f\u8aa4\uff0c\u4e26\u78ba\u4fdd PostgreSQL \u6578\u64da\u5eab\u7684\u9806\u5229\u904b\u884c\u3002<\/p>\n<p>\u6b32\u7372\u53d6\u6709\u95dc VPS \u4e3b\u6a5f\u7684\u66f4\u591a\u4fe1\u606f\u4ee5\u53ca\u5176\u5982\u4f55\u70ba\u60a8\u7684\u696d\u52d9\u5e36\u4f86\u76ca\u8655\uff0c\u8acb\u8a2a\u554f <a href=\"https:\/\/server.hk\">Server.HK<\/a>\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":[4925],"tags":[],"class_list":["post-21444","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21444","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=21444"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21444\/revisions"}],"predecessor-version":[{"id":24039,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21444\/revisions\/24039"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=21444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=21444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=21444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}