{"id":21339,"date":"2024-01-02T07:44:21","date_gmt":"2024-01-02T07:44:21","guid":{"rendered":"https:\/\/server.hk\/blog\/21339\/"},"modified":"2024-11-14T10:36:26","modified_gmt":"2024-11-14T02:36:26","slug":"how-to-fix-postgresql-error-code-2203e-too_many_json_object_members","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/21339\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members"},"content":{"rendered":"<h1>\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members<\/h1>\n<p>\u7c21\u4ecb\uff1aPostgreSQL \u662f\u4e00\u500b\u53d7\u6b61\u8fce\u7684\u958b\u6e90\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u4ee5\u5176\u7a69\u5065\u6027\u548c\u9748\u6d3b\u6027\u800c\u805e\u540d\u3002\u7136\u800c\uff0c\u548c\u4efb\u4f55\u8edf\u4ef6\u4e00\u6a23\uff0c\u5b83\u4e5f\u53ef\u80fd\u6703\u9047\u5230\u4e00\u4e9b\u932f\u8aa4\uff0c\u9019\u4e9b\u932f\u8aa4\u53ef\u80fd\u6703\u5f71\u97ff\u5176\u9806\u5229\u904b\u884c\u3002\u5176\u4e2d\u4e00\u500b\u932f\u8aa4\u662f PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u4e26\u63d0\u4f9b\u9010\u6b65\u89e3\u6c7a\u65b9\u6848\u4f86\u4fee\u5fa9\u5b83\u3002<\/p>\n<h2>\u4e86\u89e3 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members<\/h2>\n<p>PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members \u7576\u55ae\u500b JSON \u5c0d\u8c61\u4e2d\u6709\u904e\u591a\u7684 JSON \u5c0d\u8c61\u6210\u54e1\u6642\u767c\u751f\u3002\u6839\u64da\u9ed8\u8a8d\u8a2d\u7f6e\uff0cPostgreSQL \u6bcf\u500b\u5c0d\u8c61\u7684 JSON \u5c0d\u8c61\u6210\u54e1\u6578\u91cf\u9650\u5236\u70ba 1600\u3002\u5982\u679c\u8d85\u904e\u6b64\u9650\u5236\uff0c\u5c07\u89f8\u767c\u8a72\u932f\u8aa4\u3002<\/p>\n<h2>\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<ol>\n<li><strong>\u5927\u578b JSON \u5c0d\u8c61\uff1a<\/strong>\u7576\u5617\u8a66\u63d2\u5165\u6216\u66f4\u65b0\u5305\u542b\u904e\u591a\u6210\u54e1\u7684 JSON \u5c0d\u8c61\u6642\uff0c\u901a\u5e38\u6703\u9047\u5230\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u8907\u96dc\u67e5\u8a62\uff1a<\/strong>\u6d89\u53ca JSON \u51fd\u6578\u6216\u904b\u7b97\u7b26\u7684\u8907\u96dc\u67e5\u8a62\u5982\u679c\u7d50\u679c\u5305\u542b\u6210\u54e1\u904e\u591a\u7684 JSON \u5c0d\u8c61\uff0c\u4e5f\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ol>\n<h2>\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members \u7684\u89e3\u6c7a\u65b9\u6848<\/h2>\n<ol>\n<li><strong>\u589e\u52a0 JSON \u5c0d\u8c61\u6210\u54e1\u9650\u5236\uff1a<\/strong>\n<ul>\n<li>\u8a2a\u554f PostgreSQL \u914d\u7f6e\u6587\u4ef6\uff08postgresql.conf\uff09\u3002<\/li>\n<li>\u627e\u5230 &#8220;max_json_members&#8221; \u53c3\u6578\u3002<\/li>\n<li>\u5c07\u5176\u503c\u589e\u52a0\u5230\u66f4\u9ad8\u7684\u9650\u5236\uff0c\u4f8b\u5982 2000\u3002<\/li>\n<li>\u4fdd\u5b58\u66f4\u6539\u4e26\u91cd\u65b0\u555f\u52d5 PostgreSQL \u670d\u52d9\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u62c6\u5206\u5927\u578b JSON \u5c0d\u8c61\uff1a<\/strong>\n<ul>\n<li>\u5982\u679c\u589e\u52a0\u6210\u54e1\u9650\u5236\u4e0d\u53ef\u884c\u6216\u4e0d\u7406\u60f3\uff0c\u8003\u616e\u5c07\u5927\u578b JSON \u5c0d\u8c61\u62c6\u5206\u70ba\u66f4\u5c0f\u7684\u5c0d\u8c61\u3002<\/li>\n<li>\u5206\u6790 JSON \u5c0d\u8c61\u7684\u7d50\u69cb\u4e26\u8b58\u5225\u908f\u8f2f\u5206\u9694\u3002<\/li>\n<li>\u70ba\u6bcf\u500b\u5206\u9694\u5275\u5efa\u7368\u7acb\u7684 JSON \u5c0d\u8c61\uff0c\u78ba\u4fdd\u4e0d\u8d85\u904e\u6210\u54e1\u9650\u5236\u3002<\/li>\n<li>\u76f8\u61c9\u5730\u4fee\u6539\u67e5\u8a62\u6216\u6578\u64da\u63d2\u5165\/\u66f4\u65b0\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u512a\u5316\u67e5\u8a62\uff1a<\/strong>\n<ul>\n<li>\u6aa2\u67e5\u6d89\u53ca JSON \u51fd\u6578\u6216\u904b\u7b97\u7b26\u7684\u67e5\u8a62\u3002<\/li>\n<li>\u8b58\u5225\u4efb\u4f55\u4e0d\u5fc5\u8981\u6216\u5197\u9918\u7684\u64cd\u4f5c\u3002<\/li>\n<li>\u901a\u904e\u522a\u9664\u4e0d\u5fc5\u8981\u7684 JSON \u64cd\u4f5c\u6216\u805a\u5408\u4f86\u7c21\u5316\u67e5\u8a62\u3002<\/li>\n<li>\u8003\u616e\u4f7f\u7528\u7d22\u5f15\u6216\u512a\u5316\u67e5\u8a62\u57f7\u884c\u8a08\u5283\u4ee5\u6539\u5584\u6027\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5347\u7d1a PostgreSQL \u7248\u672c\uff1a<\/strong>\n<ul>\n<li>\u6aa2\u67e5\u60a8\u662f\u5426\u4f7f\u7528\u8f03\u820a\u7248\u672c\u7684 PostgreSQL\u3002<\/li>\n<li>\u4e00\u4e9b\u820a\u7248\u672c\u7684 JSON \u5c0d\u8c61\u6210\u54e1\u9650\u5236\u53ef\u80fd\u8f03\u4f4e\u3002<\/li>\n<li>\u8003\u616e\u5347\u7d1a\u5230\u63d0\u4f9b\u66f4\u9ad8\u9650\u5236\u6216\u6539\u9032\u7684 JSON \u8655\u7406\u80fd\u529b\u7684\u65b0\u7248\u672c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>\u7e3d\u7d50<\/h2>\n<p>PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2203E &#8211; too_many_json_object_members \u53ef\u4ee5\u901a\u904e\u589e\u52a0 JSON \u5c0d\u8c61\u6210\u54e1\u9650\u5236\u3001\u62c6\u5206\u5927\u578b JSON \u5c0d\u8c61\u3001\u512a\u5316\u67e5\u8a62\u6216\u5347\u7d1a\u5230\u66f4\u65b0\u7684 PostgreSQL \u7248\u672c\u4f86\u89e3\u6c7a\u3002\u9075\u5faa\u9019\u4e9b\u89e3\u6c7a\u65b9\u6848\uff0c\u60a8\u53ef\u4ee5\u78ba\u4fdd PostgreSQL \u6578\u64da\u5eab\u7684\u9806\u5229\u904b\u884c\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u53ef\u9760\u4e14\u9ad8\u6027\u80fd\u7684 VPS \u8a17\u7ba1\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528 Server.HK\u3002\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u8a17\u7ba1\u670d\u52d9\u70ba\u904b\u884c PostgreSQL \u548c\u5176\u4ed6\u61c9\u7528\u63d0\u4f9b\u4e86\u5b8c\u7f8e\u7684\u74b0\u5883\u3002\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u4e86\u89e3\u66f4\u591a\u6211\u5011\u7684\u7522\u54c1\u53ca\u5982\u4f55\u652f\u6301\u60a8\u7684\u8a17\u7ba1\u9700\u6c42\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-21339","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21339","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=21339"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21339\/revisions"}],"predecessor-version":[{"id":24166,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21339\/revisions\/24166"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=21339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=21339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=21339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}