{"id":23049,"date":"2024-09-06T17:17:53","date_gmt":"2024-09-06T22:17:53","guid":{"rendered":"https:\/\/dev.arbin.com\/?page_id=23049"},"modified":"2025-05-25T15:35:25","modified_gmt":"2025-05-25T20:35:25","slug":"introduction-postgresql","status":"publish","type":"page","link":"https:\/\/www.arbin.com\/zh\/82-8\/postgresql-html-%e7%ae%80%e4%bb%8b","title":{"rendered":"PostgreSQL \u7b80\u4ecb"},"content":{"rendered":"<a href=\"\/zh\/\">\u9996\u9875<\/a> > \n<a href=\"\/zh\/%e8%bd%af%e4%bb%b6%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-html\/\"> \u8f6f\u4ef6\u89e3\u51b3\u65b9\u6848<\/a> &gt;\n\u9ad8\u7ea7\u6570\u636e\u5b58\u50a8\u89e3\u51b3\u65b9\u6848\n<h1>\n\t\tIntroduction PostgreSQL\n\t<\/h1>\n\t<p>Arbin \u96c6\u6210\u7684 PostgreSQL Server \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 RDBMS\uff0c\u4e13\u4e3a\u7ba1\u7406\u3001\u5206\u6790\u548c\u4fdd\u62a4\u6570\u636e\u800c\u8bbe\u8ba1\u3002\u5b83\u652f\u6301\u5e7f\u6cdb\u7684\u529f\u80fd\uff0c\u53ef\u7528\u4e8e\u5404\u884c\u5404\u4e1a\u548c\u5404\u79cd\u5e94\u7528\u3002\u81ea\u4ece Arbin MITS \u5728\u6570\u636e\u91c7\u96c6\u4e2d\u91c7\u7528 SQL Server \u540e\uff0c\u5b83\u4e3a\u6709\u6548\u67e5\u8be2\u548c\u7ba1\u7406\u6d4b\u8bd5\u6570\u636e\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u3002 <strong>PostgreSQL<\/strong> \u662f\u4e00\u79cd\u5f00\u6e90\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08RDBMS\uff09\uff0c\u4ee5\u5176\u5148\u8fdb\u7684\u529f\u80fd\u3001\u53ef\u9760\u6027\u548c\u9075\u5faa SQL \u6807\u51c6\u800c\u8457\u79f0\u3002\u5b83\u7531\u4e00\u4e2a\u5168\u7403\u8d21\u732e\u8005\u793e\u533a\u5f00\u53d1\u548c\u7ef4\u62a4\uff0c\u56e0\u5176\u53ef\u6269\u5c55\u6027\u548c\u5bf9\u590d\u6742\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u800c\u5e7f\u53d7\u8d5e\u8a89\u3002<\/p>\n\t\t\t\t<img decoding=\"async\" src=\"https:\/\/dev.arbin.com\/wp-content\/uploads\/2024\/09\/ARBIN-Introduction-Postgre-SQL-i2.png\" alt=\"\" itemprop=\"image\" onerror=\"this.style.display='none'\"  \/>\n<h2>\n\t\tCore Functionalities of PostgreSQL Solution\n\t<\/h2>\n\t\t<h3>\u5f00\u653e\u6e90\u4ee3\u7801<\/h3><p>PostgreSQL \u6839\u636e PostgreSQL \u8bb8\u53ef\u53d1\u5e03\uff0c\u8fd9\u662f\u4e00\u79cd\u8bb8\u53ef\u5f0f\u5f00\u6e90\u8bb8\u53ef\uff0c\u610f\u5473\u7740\u53ef\u4ee5\u81ea\u7531\u4f7f\u7528\u3001\u4fee\u6539\u548c\u5206\u53d1\u3002<\/p>\n\t\t<h3>\u7b26\u5408\u6807\u51c6<\/h3><p>\u5b83\u4e25\u683c\u9075\u5b88 SQL \u6807\u51c6\uff0c\u786e\u4fdd\u4e0e\u57fa\u4e8e SQL \u7684\u5e94\u7528\u7a0b\u5e8f\u517c\u5bb9\uff0c\u5e76\u5177\u6709\u5e7f\u6cdb\u7684 SQL \u529f\u80fd\u3002<\/p>\n\t\t<h3>\u53ef\u6269\u5c55\u6027<\/h3><p>\u7528\u6237\u53ef\u4ee5\u5b9a\u4e49\u81ea\u5b9a\u4e49\u6570\u636e\u7c7b\u578b\u3001\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u3002\u5b83\u8fd8\u652f\u6301\u63d2\u4ef6\u548c\u6269\u5c55\uff0c\u5982\u7528\u4e8e\u5730\u7406\u7a7a\u95f4\u6570\u636e\u548c\u5168\u6587\u641c\u7d22\u529f\u80fd\u7684 PostGIS\u3002<\/p>\n\t\t<h3>\u9ad8\u7ea7\u6570\u636e\u7c7b\u578b<\/h3><p>\u9664\u57fa\u672c\u6574\u6570\u548c\u5b57\u7b26\u4e32\u5916\uff0c\u8fd8\u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec JSON\u3001XML\u3001\u6570\u7ec4\u3001hstore\uff08\u952e\u503c\u5bf9\uff09\u548c\u81ea\u5b9a\u4e49\u7c7b\u578b\u3002<\/p>\n\t\t<h3>\u5e76\u53d1\u63a7\u5236<\/h3><p>\u4f7f\u7528\u591a\u7248\u672c\u5e76\u53d1\u63a7\u5236\uff08MVCC\uff09\u5904\u7406\u5e76\u53d1\u4e8b\u52a1\uff0c\u65e0\u9700\u9501\u5b9a\u6570\u636e\u5e93\uff0c\u786e\u4fdd\u6570\u636e\u5b8c\u6574\u6027\u548c\u6027\u80fd\u3002<\/p>\n\t\t<h3>ACID \u5408\u89c4\u6027<\/h3><p>\u5b8c\u5168\u652f\u6301 ACID\uff08\u539f\u5b50\u6027\u3001\u4e00\u81f4\u6027\u3001\u9694\u79bb\u6027\u3001\u6301\u4e45\u6027\uff09\u5c5e\u6027\uff0c\u786e\u4fdd\u53ef\u9760\u7684\u4e8b\u52a1\u5904\u7406\u548c\u6570\u636e\u5b8c\u6574\u6027\u3002<\/p>\n\t\t<h3>\u53ef\u6269\u5c55\u6027<\/h3><p>\u65e0\u8bba\u662f\u7eb5\u5411\u6269\u5c55\uff08\u4e3a\u5355\u53f0\u670d\u52a1\u5668\u589e\u52a0\u66f4\u591a\u8d44\u6e90\uff09\u8fd8\u662f\u6a2a\u5411\u6269\u5c55\uff08\u4f7f\u7528 Citus \u7b49\u5de5\u5177\u5c06\u6570\u636e\u5206\u5e03\u5230\u591a\u53f0\u670d\u52a1\u5668\u4e0a\uff09\uff0c\u90fd\u80fd\u5f88\u597d\u5730\u5b9e\u73b0\u3002<\/p>\n\t\t<h3>\u4fbf\u6377\u7684\u7cfb\u7edf\u5907\u4efd\u4e0e\u6062\u590d<\/h3><p>\u63d0\u4f9b\u5f3a\u5927\u7684\u5907\u4efd\u548c\u6062\u590d\u9009\u9879\uff0c\u5305\u62ec\u7269\u7406\u5907\u4efd\u3001\u903b\u8f91\u5907\u4efd\u548c\u65f6\u95f4\u70b9\u6062\u590d (PITR)\u3002<\/p>\n\t\t<h3>\u8de8\u5e73\u53f0<\/h3><p>\u53ef\u5728\u5404\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u5305\u62ec Windows\u3001Linux\u3001macOS \u548c\u7c7b Unix \u7cfb\u7edf\u3002<\/p>\n<h2>\n\t\tAdvantages  of PostgreSQL\n\t<\/h2>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-0\" data-index=\"0\" aria-selected=\"true\" aria-controls=\"fl-tabs--panel-0\" aria-expanded=\"true\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u7ecf\u6d4e\u9ad8\u6548\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-1\" data-index=\"1\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-1\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u9ad8\u5ea6\u53ef\u6269\u5c55\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-2\" data-index=\"2\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-2\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u9ad8\u7ea7 SQL \u529f\u80fd\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-3\" data-index=\"3\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-3\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u5f3a\u5927\u7684\u5e76\u53d1\u63a7\u5236\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-4\" data-index=\"4\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-4\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u5f3a\u5927\u7684\u6570\u636e\u5b8c\u6574\u6027\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-5\" data-index=\"5\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-5\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u53ef\u6269\u5c55\u6027\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-6\" data-index=\"6\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-6\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-7\" data-index=\"7\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-7\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u6d3b\u8dc3\u7684\u793e\u533a\u548c\u652f\u6301\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-8\" data-index=\"8\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-8\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u9ad8\u53ef\u7528\u6027\u548c\u707e\u96be\u6062\u590d\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-9\" data-index=\"9\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-9\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u5b89\u5168\t\t\t\t<\/a>\n\t\t\t\t\t\t\u7ecf\u6d4e\u9ad8\u6548\n\t\t\t\t\t\t\t\t\t\t\t<h3>\u514d\u8d39\u4f7f\u7528<\/h3>\n<p>\u4f5c\u4e3a\u5f00\u653e\u6e90\u4ee3\u7801\uff0cPostgreSQL \u4e0d\u9700\u8981\u4efb\u4f55\u8bb8\u53ef\u8d39\u7528\uff0c\u56e0\u6b64\u5bf9\u4f01\u4e1a\u548c\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\u662f\u4e00\u4e2a\u6781\u5177\u5438\u5f15\u529b\u7684\u9009\u62e9\u3002<\/p>\n\t\t\t\t\t\t\u9ad8\u5ea6\u53ef\u6269\u5c55\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u53ef\u5b9a\u5236<\/h3>\n<p>Users can create custom data types, functions, and operators, and integrate extensions to enhance the database&#8217;s capabilities.<\/p>\n\n\n<h3>\u4e30\u5bcc\u7684\u751f\u6001\u7cfb\u7edf<\/h3>\n<p>\u6709\u8bb8\u591a\u6269\u5c55\u548c\u63d2\u4ef6\u53ef\u7528\uff0c\u5982\u7528\u4e8e\u7a7a\u95f4\u6570\u636e\u7684 PostGIS \u548c\u7528\u4e8e\u6570\u636e\u5e93\u7ba1\u7406\u7684 pgAdmin\u3002<\/p>\n\n\t\t\t\t\t\t\u9ad8\u7ea7 SQL \u529f\u80fd\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u5168\u9762\u7684 SQL \u652f\u6301<\/h3>\n<p>\u5305\u62ec\u901a\u7528\u8868\u8868\u8fbe\u5f0f\uff08CTE\uff09\u3001\u7a97\u53e3\u51fd\u6570\u548c\u5168\u6587\u641c\u7d22\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n\n\n<h3>\u652f\u6301 JSON<\/h3>\n<p>\u63d0\u4f9b\u5f3a\u5927\u7684 JSON \u652f\u6301\uff0c\u5305\u62ec\u7528\u4e8e\u4e8c\u8fdb\u5236\u5b58\u50a8\u548c\u9ad8\u6548\u67e5\u8be2\u7684 JSONB\u3002<\/p>\n\n\t\t\t\t\t\t\u5f3a\u5927\u7684\u5e76\u53d1\u63a7\u5236\n\t\t\t\t\t\t\t\t\t\t\t<h3><b>MVCC<\/b><\/h3>\n\n<p>\u65e0\u9700\u9501\u5b9a\u5373\u53ef\u9ad8\u6548\u5904\u7406\u5e76\u53d1\u4e8b\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n\t\t\t\t\t\t\u5f3a\u5927\u7684\u6570\u636e\u5b8c\u6574\u6027\n\t\t\t\t\t\t\t\t\t\t\t<h3><b>ACID \u5408\u89c4\u6027<\/b><\/h3>\n\n<p>\u901a\u8fc7 ACID \u7279\u6027\u786e\u4fdd\u6570\u636e\u5b8c\u6574\u6027\u548c\u53ef\u9760\u6027\uff0c\u4f7f\u5176\u9002\u7528\u4e8e\u4e8b\u52a1\u6027\u5e94\u7528\u3002<\/p>\n\t\t\t\t\t\t\u53ef\u6269\u5c55\u6027\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u6c34\u5e73\u7f29\u653e<\/h3>\n<p>\u53ef\u4f7f\u7528\u5206\u7247\u6280\u672f\u548c Citus \u7b49\u6269\u5c55\u529f\u80fd\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\u3002<\/p>\n\n\n<h3>\u5782\u76f4\u7f29\u653e<\/h3>\n<p>\u80fd\u591f\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u548c\u9ad8\u8d1f\u8377\u5de5\u4f5c\uff0c\u5e76\u80fd\u5728\u5355\u53f0\u670d\u52a1\u5668\u4e0a\u6269\u5c55\u8d44\u6e90\u3002<\/p>\n\n\t\t\t\t\t\t\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\n\t\t\t\t\t\t\t\t\t\t\t<h3><b>\u5e7f\u6cdb\u7684\u64cd\u4f5c\u7cfb\u7edf\u652f\u6301<\/b><\/h3>\n\n<p>\u53ef\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u63d0\u4f9b\u4e86\u90e8\u7f72\u7684\u7075\u6d3b\u6027\u3002<\/p>\n\t\t\t\t\t\t\u6d3b\u8dc3\u7684\u793e\u533a\u548c\u652f\u6301\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u793e\u533a\u8d21\u732e<\/h3>\n<p>\u8be5\u7cfb\u7edf\u7531\u4e00\u4e2a\u6d3b\u8dc3\u7684\u793e\u533a\u63d0\u4f9b\u652f\u6301\uff0c\u8be5\u793e\u533a\u4e3a\u8be5\u7cfb\u7edf\u7684\u5f00\u53d1\u505a\u51fa\u4e86\u8d21\u732e\uff0c\u5e76\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u6587\u6863\u548c\u8bba\u575b\u3002<\/p>\n\n\n<h3>\u5546\u4e1a\u652f\u6301<\/h3>\n<p>\u591a\u5bb6\u516c\u53f8\u4e3a PostgreSQL \u63d0\u4f9b\u5546\u4e1a\u652f\u6301\u3001\u54a8\u8be2\u548c\u670d\u52a1\u3002<\/p>\n\n\t\t\t\t\t\t\u9ad8\u53ef\u7528\u6027\u548c\u707e\u96be\u6062\u590d\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u590d\u5236<\/h3>\n<p>\u652f\u6301\u5404\u79cd\u590d\u5236\u65b9\u6cd5\uff0c\u5305\u62ec\u6d41\u590d\u5236\u548c\u903b\u8f91\u590d\u5236\u3002<\/p>\n\n\n<h3>\u6545\u969c\u5207\u6362\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u63d0\u4f9b\u7528\u4e8e\u9ad8\u53ef\u7528\u6027\u548c\u6545\u969c\u5207\u6362\u7684\u5de5\u5177\u548c\u914d\u7f6e\uff0c\u5982 Patroni \u548c repmgr\u3002<\/p>\n\n\t\t\t\t\t\t\u5b89\u5168\n\t\t\t\t\t\t\t\t\t\t\t<h3><b>\u5f3a\u5927\u7684\u5b89\u5168\u529f\u80fd<\/b><\/h3>\n\n<p>\u5305\u62ec\u8eab\u4efd\u9a8c\u8bc1\u65b9\u6cd5\u3001\u89d2\u8272\u548c\u6743\u9650\u4ee5\u53ca\u6570\u636e\u52a0\u5bc6\u9009\u9879\uff0c\u4ee5\u4fdd\u62a4\u6570\u636e\u3002<\/p>\n\t\t<h2>\u6d41\u5a92\u4f53<br \/>\u590d\u5236<br \/><\/h2>\t\n\t\t<p>PostgreSQL \u4e2d\u7684 \"\u6d41\u590d\u5236 \"\u5141\u8bb8\u8fd1\u4e4e\u5b9e\u65f6\u5730\u5c06\u4e3b\u670d\u52a1\u5668\u4e0a\u7684\u66f4\u6539\u590d\u5236\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u5907\u7528\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<p>\u8fd9\u4e00\u8fc7\u7a0b\u53ef\u786e\u4fdd\u5907\u7528\u670d\u52a1\u5668\u5728\u4e3b\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u65f6\u80fd\u591f\u63a5\u7ba1\uff0c\u4ece\u800c\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u505c\u673a\u65f6\u95f4\u548c\u6570\u636e\u4e22\u5931\u3002<\/p>\n\t\t\t\t<img decoding=\"async\" src=\"https:\/\/dev.arbin.com\/wp-content\/uploads\/2024\/09\/ARBIN-Streaming-Replications.png\" alt=\"ARBIN \u6d41\u590d\u5236\" itemprop=\"image\" height=\"576\" width=\"966\" title=\"ARBIN \u6d41\u590d\u5236\" onerror=\"this.style.display='none'\"  \/>\n<h2>\n\t\tPostgreSQL Database offers extensive Replication strategies\n\t<\/h2>\n<h2>\n\t\t\u4f18\u52bf\n\t<\/h2>\n\t\t<h3>\u9ad8\u53ef\u7528\u6027<\/h3><p>\u901a\u8fc7\u4fdd\u6301\u5907\u7528\u670d\u52a1\u5668\u4e0e\u4e3b\u670d\u52a1\u5668\u540c\u6b65\u6765\u63d0\u4f9b\u5197\u4f59\uff0c\u4ece\u800c\u51cf\u5c11\u505c\u673a\u65f6\u95f4\u3002<\/p>\n\t\t<h3>\u707e\u96be\u6062\u590d<\/h3><p>\u5907\u7528\u670d\u52a1\u5668\u53ef\u7528\u4e8e\u4ece\u5f71\u54cd\u4e3b\u670d\u52a1\u5668\u7684\u6545\u969c\u6216\u707e\u96be\u4e2d\u6062\u590d\u3002<\/p>\n\t\t<h3>\u8bfb\u53d6\u53ef\u6269\u5c55\u6027<\/h3><p>\u5907\u7528\u670d\u52a1\u5668\u53ef\u7528\u4e8e\u5378\u8f7d\u53ea\u8bfb\u67e5\u8be2\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n\t\t<h2>\u5907\u7528<br \/>\u590d\u5236<br \/><\/h2>\t\n\t\t<h3>\u652f\u6301\u8bf4\u660e<\/h3><p>PostgreSQL \u5907\u7528\u590d\u5236\u5177\u6709\u591a\u79cd\u4f18\u52bf\uff0c\u5c24\u5176\u662f\u5728\u9ad8\u53ef\u7528\u6027\u3001\u707e\u96be\u6062\u590d\u548c\u8d1f\u8f7d\u5e73\u8861\u65b9\u9762<\/p>\n\t\t\t\t<img decoding=\"async\" src=\"https:\/\/dev.arbin.com\/wp-content\/uploads\/2024\/09\/ARBIN-Standby-Replications-1.png\" alt=\"ARBIN \u5f85\u673a\u590d\u5236\" itemprop=\"image\" height=\"579\" width=\"966\" title=\"ARBIN \u5f85\u673a\u590d\u5236\" onerror=\"this.style.display='none'\"  \/>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-0\" data-index=\"0\" aria-selected=\"true\" aria-controls=\"fl-tabs--panel-0\" aria-expanded=\"true\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u9ad8\u53ef\u7528\u6027\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-1\" data-index=\"1\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-1\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u707e\u96be\u6062\u590d\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-2\" data-index=\"2\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-2\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u8d1f\u8f7d\u5e73\u8861\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-3\" data-index=\"3\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-3\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u7ef4\u62a4\u548c\u5347\u7ea7\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-4\" data-index=\"4\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-4\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u5730\u7406\u5197\u4f59\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"fl-tabs--label-5\" data-index=\"5\" aria-selected=\"false\" aria-controls=\"fl-tabs--panel-5\" aria-expanded=\"false\" role=\"tab\" tabindex=\"0\">\t\t\t\t\u6570\u636e\u4e00\u81f4\u6027\t\t\t\t<\/a>\n\t\t\t\t\t\t\u9ad8\u53ef\u7528\u6027\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u6700\u5927\u9650\u5ea6\u51cf\u5c11\u505c\u673a\u65f6\u95f4<\/h3>\n<p>\u5907\u7528\u670d\u52a1\u5668\u53ef\u6839\u636e\u4e3b\u670d\u52a1\u5668\u7684\u6700\u65b0\u66f4\u6539\u4e0d\u65ad\u66f4\u65b0\u3002\u5982\u679c\u4e3b\u670d\u52a1\u5668\u51fa\u73b0\u6545\u969c\u6216\u9700\u8981\u7ef4\u62a4\uff0c\u5907\u7528\u670d\u52a1\u5668\u53ef\u4ee5\u5347\u7ea7\u4e3a\u4e3b\u670d\u52a1\u5668\uff0c\u4ece\u800c\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u505c\u673a\u65f6\u95f4\u3002<\/p>\n\n\n<h3>\u81ea\u52a8\u6545\u969c\u5207\u6362<\/h3>\n<p>\u4e0e Patroni \u6216 repmgr \u7b49\u6545\u969c\u8f6c\u79fb\u7ba1\u7406\u5de5\u5177\u96c6\u6210\u540e\uff0c\u5982\u679c\u539f\u6765\u7684\u4e3b\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\uff0c\u5907\u7528\u670d\u52a1\u5668\u53ef\u81ea\u52a8\u5347\u7ea7\u4e3a\u4e3b\u670d\u52a1\u5668\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u51cf\u5c11\u505c\u673a\u65f6\u95f4\u548c\u4eba\u5de5\u5e72\u9884\u3002<\/p>\n\n\t\t\t\t\t\t\u707e\u96be\u6062\u590d\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u6570\u636e\u4fdd\u62a4<\/h3>\n<p>\u5907\u7528\u670d\u52a1\u5668\u662f\u4e3b\u6570\u636e\u5e93\u7684\u5b9e\u65f6\u526f\u672c\u3002\u5982\u679c\u4e3b\u670d\u52a1\u5668\u53d1\u751f\u707e\u96be\u6027\u6545\u969c\uff0c\u5907\u7528\u670d\u52a1\u5668\u53ef\u7528\u4e8e\u6062\u590d\u6570\u636e\u5e76\u6062\u590d\u8fd0\u884c\u3002<\/p>\n\n\n<h3>\u65f6\u95f4\u70b9\u6062\u590d<\/h3>\n<p>\u6709\u4e86\u91cd\u653e WAL\uff08\u524d\u7f6e\u5199\u5165\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u5c06\u6570\u636e\u6062\u590d\u5230\u7279\u5b9a\u7684\u65f6\u95f4\u70b9\uff0c\u8fd9\u5bf9\u4e8e\u6062\u590d\u6570\u636e\u635f\u574f\u6216\u610f\u5916\u5220\u9664\u81f3\u5173\u91cd\u8981\u3002<\/p>\n\n\t\t\t\t\t\t\u8d1f\u8f7d\u5e73\u8861\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u53ea\u8bfb\u67e5\u8be2<\/h3>\n<p>\u5907\u7528\u670d\u52a1\u5668\u53ef\u914d\u7f6e\u4e3a\u5904\u7406\u53ea\u8bfb\u67e5\u8be2\uff0c\u4ece\u800c\u51cf\u5c11\u4e3b\u670d\u52a1\u5668\u7684\u8d1f\u8f7d\u3002\u8fd9\u53ef\u4ee5\u63d0\u9ad8\u8bfb\u5199\u6bd4\u7387\u8f83\u9ad8\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n\n\n<h3>\u8bfb\u53d6\u53ef\u6269\u5c55\u6027<\/h3>\n<p>\u5c06\u8bfb\u53d6\u67e5\u8be2\u5206\u5e03\u5728\u591a\u4e2a\u5907\u7528\u670d\u52a1\u5668\u4e0a\uff0c\u6709\u52a9\u4e8e\u6269\u5c55\u8bfb\u53d6\u64cd\u4f5c\u5e76\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u3002<\/p>\n\n\t\t\t\t\t\t\u7ef4\u62a4\u548c\u5347\u7ea7\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u6eda\u52a8\u5347\u7ea7<\/h3>\n<p>\u5907\u7528\u670d\u52a1\u5668\u53ef\u7528\u4e8e\u6d4b\u8bd5\u5347\u7ea7\u6216\u4fee\u8865\u7a0b\u5e8f\uff0c\u7136\u540e\u518d\u5c06\u5176\u5e94\u7528\u5230\u4e3b\u670d\u52a1\u5668\u4e0a\u3002\u8fd9\u6837\u5c31\u80fd\u5728\u6700\u5c11\u505c\u673a\u65f6\u95f4\u5185\u8fdb\u884c\u6eda\u52a8\u5347\u7ea7\u3002<\/p>\n\n\n<h3>\u7ef4\u62a4<\/h3>\n<p>Routine maintenance tasks, such as backups or index reorganization, can be performed on standby servers without impacting the primary server&#8217;s performance.<\/p>\n\n\t\t\t\t\t\t\u5730\u7406\u5197\u4f59\n\t\t\t\t\t\t\t\t\t\t\t\n\n<h3>\u5206\u5e03\u5f0f\u67b6\u6784<\/h3>\n<p>Standby servers can be located in different geographic locations to provide geographic redundancy. This setup helps protect against regional disasters or network issues affecting the primary server&#8217;s location.<\/p>\n\n\n<h3>\u707e\u96be\u6062\u590d\u7ad9\u70b9<\/h3>\n<p>\u901a\u8fc7\u5728\u4e0d\u540c\u7684\u6570\u636e\u4e2d\u5fc3\u6216\u533a\u57df\u8bbe\u7f6e\u5907\u7528\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u786e\u4fdd\u5f71\u54cd\u4e00\u4e2a\u5730\u70b9\u7684\u707e\u96be\u4e0d\u4f1a\u5f71\u54cd\u6570\u636e\u7684\u53ef\u7528\u6027\u3002<\/p>\n\n\t\t\t\t\t\t\u6570\u636e\u4e00\u81f4\u6027\n\t\t\t\t\t\t\t\t\t\t\t<h3><b>\u5b9e\u65f6\u540c\u6b65<\/b><\/h3>\n\n<p>\u6d41\u590d\u5236\u53ef\u786e\u4fdd\u5907\u7528\u670d\u52a1\u5668\u4e0e\u4e3b\u670d\u52a1\u5668\u4fdd\u6301\u540c\u6b65\uff0c\u4ece\u800c\u4fdd\u6301\u6240\u6709\u670d\u52a1\u5668\u7684\u6570\u636e\u4e00\u81f4\u6027\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u591a\u4e2a\u5730\u70b9\u6570\u636e\u4fdd\u6301\u4e00\u81f4\u7684\u5e94\u7528\u7a0b\u5e8f\u6765\u8bf4\u81f3\u5173\u91cd\u8981\u3002<\/p>\n\t\t<p>\u6211\u4eec\u5efa\u8bae\u5ba2\u6237\u5728 Arbin MITS \u4e0a\u4f7f\u7528 PostgreSQL \u4f5c\u4e3a\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u4e3a\u5907\u4efd\u3001\u67e5\u8be2\u3001\u5bfc\u51fa\u3001\u7ed8\u56fe\u548c\u5206\u6790\u8bbe\u7f6e\u590d\u5236\u3002<\/p>\n<p>\u8fd9\u79cd\u914d\u7f6e\u4e0d\u4f1a\u7ed9\u4e3b\u6570\u636e\u5e93\u7684 READ \u5e26\u6765\u9ad8\u8d1f\u8f7d\uff0c\u5e76\u80fd\u91ca\u653e\u4e3b\u670d\u52a1\u5668\u8d44\u6e90\uff0c\u5feb\u901f\u5b8c\u6210\u63d2\u5165\u8fc7\u7a0b\uff0c\u907f\u514d\u6570\u636e\u4e22\u5931\u7684\u6f5c\u5728\u98ce\u9669\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>Home > Software Solution > Advanced Datastore Solution Introduction PostgreSQL Arbin integrated PostgreSQL Server, a powerful RDBMS, is designed for managing, analyzing, and securing data. It supports a wide range of functionalities and is used across various industries and applications. Since Arbin MITS adopted SQL Server into Data Acquisition, it has provided a flexible way [&hellip;]<\/p>","protected":false},"author":27,"featured_media":23041,"parent":22211,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"Introduction\u00a0PostgreSQL | Arbin Instruments","_seopress_titles_desc":"Arbin integrated PostgreSQL Server, a powerful RDBMS, is designed for managing, analyzing, and securing data. It supports a wide range of functionalities and is used across various industries and applications. Since Arbin MITS adopted SQL Server into Data Acquisition, it has provided a flexible way to query and manage testing data effectively. PostgreSQL is an open-source relational database management system (RDBMS) known for its advanced features, reliability, and adherence to SQL standards. It is developed and maintained by a global community of contributors and is often praised for its extensibility and support for complex data types.","_seopress_robots_index":"","inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-23049","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/pages\/23049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/comments?post=23049"}],"version-history":[{"count":1,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/pages\/23049\/revisions"}],"predecessor-version":[{"id":26934,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/pages\/23049\/revisions\/26934"}],"up":[{"embeddable":true,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/pages\/22211"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.arbin.com\/zh\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.arbin.com\/zh\/wp-json\/wp\/v2\/media?parent=23049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}