{"id":99559,"date":"2026-09-02T20:25:03","date_gmt":"2026-09-02T12:25:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/99559.html"},"modified":"2026-09-02T20:25:03","modified_gmt":"2026-09-02T12:25:03","slug":"postgresql%e8%b7%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%b0%e6%8d%ae%e8%bf%81%e7%a7%bb%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8epg_dump%e5%88%b0pg_restore%e5%85%a8%e6%b5%81%e7%a8%8b%e8%a7%a3%e6%9e%90-2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/99559.html","title":{"rendered":"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790"},"content":{"rendered":"<h3>1. \u4e3a\u4ec0\u4e48\u9009\u62e9pg_dump\u548cpg_restore\u8fdb\u884c\u8de8\u670d\u52a1\u5668\u8fc1\u79fb\uff1f<\/h3>\n<p>\u5982\u679c\u4f60\u624b\u5934\u6709\u4e24\u53f0PostgreSQL\u670d\u52a1\u5668\uff0c\u9700\u8981\u628a\u6570\u636e\u4eceA\u642c\u5230B\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u5230\u5f88\u591a\u65b9\u6cd5\uff1a\u76f4\u63a5\u590d\u5236\u6570\u636e\u76ee\u5f55\u3001\u7528\u7b2c\u4e09\u65b9\u540c\u6b65\u5de5\u5177\uff0c\u6216\u8005\u5e72\u8106\u5199\u4e2a\u811a\u672c\u4e00\u6761\u6761\u8bb0\u5f55\u5bfc\u3002\u4f46\u6298\u817e\u4e00\u5708\u4e0b\u6765\uff0c\u4f60\u4f1a\u53d1\u73b0PostgreSQL\u5b98\u65b9\u81ea\u5e26\u7684pg_dump\u548cpg_restore\u8fd9\u5bf9\u7ec4\u5408\uff0c\u624d\u662f\u771f\u6b63\u7701\u5fc3\u53c8\u9760\u8c31\u7684\u201c\u9ec4\u91d1\u642d\u6863\u201d\u3002\u6211\u8fd9\u4e9b\u5e74\u5904\u7406\u8fc7\u4e0d\u5c11\u6570\u636e\u8fc1\u79fb\u7684\u6d3b\u513f\uff0c\u4ece\u51e0\u4e2aG\u7684\u5c0f\u5e93\u5230\u4e0aT\u7684\u5927\u5e93\u90fd\u641e\u8fc7\uff0c\u5b9e\u6218\u4e0b\u6765\u8fd9\u5957\u65b9\u6cd5\u6700\u7a33\u3002<\/p>\n<p>\u7b80\u5355\u6765\u8bf4\uff0cpg_dump\u8d1f\u8d23\u628a\u6570\u636e\u5e93\u91cc\u7684\u6570\u636e\u3001\u8868\u7ed3\u6784\u3001\u7d22\u5f15\u3001\u51fd\u6570\u8fd9\u4e9b\u4e1c\u897f\uff0c\u6253\u5305\u6210\u4e00\u4e2a\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u5c31\u50cf\u662f\u4f60\u7ed9\u6570\u636e\u5e93\u62cd\u4e86\u4e2a\u5b8c\u6574\u7684\u201c\u5feb\u7167\u201d\u3002\u7136\u540e\uff0c\u4f60\u628a\u8fd9\u4e2a\u5feb\u7167\u6587\u4ef6\u642c\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\uff0c\u7528pg_restore\u8fd9\u4e2a\u5de5\u5177\uff0c\u5c31\u80fd\u539f\u539f\u672c\u672c\u5730\u628a\u6570\u636e\u5e93\u201c\u590d\u6d3b\u201d\u51fa\u6765\u3002\u8de8\u670d\u52a1\u5668\u8fc1\u79fb\uff0c\u65e0\u975e\u5c31\u662f\u4e2d\u95f4\u52a0\u4e86\u4e2a\u6587\u4ef6\u4f20\u8f93\u7684\u6b65\u9aa4\u3002\u8fd9\u5957\u65b9\u6cd5\u6709\u51e0\u4e2a\u8ba9\u6211\u7279\u522b\u653e\u5fc3\u7684\u5730\u65b9\uff1a\u7b2c\u4e00\uff0c\u5b83\u662f\u5b98\u65b9\u5de5\u5177\uff0c\u517c\u5bb9\u6027\u548c\u7a33\u5b9a\u6027\u6ca1\u5f97\u8bf4\uff0c\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u683c\u5f0f\u51fa\u5e7a\u86fe\u5b50\uff1b\u7b2c\u4e8c\uff0c\u652f\u6301\u7075\u6d3b\u5907\u4efd\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u5168\u5e93\u5907\u4efd\uff0c\u4e5f\u53ef\u4ee5\u53ea\u5907\u4efd\u67d0\u4e2a\u8868\u6216\u8005\u53ea\u5907\u4efd\u8868\u7ed3\u6784\uff1b\u7b2c\u4e09\uff0c\u6062\u590d\u7684\u65f6\u5019\u53ef\u63a7\u6027\u5f3a\uff0c\u80fd\u9009\u62e9\u5e76\u884c\u6062\u590d\u6765\u63d0\u901f\uff0c\u4e5f\u80fd\u5728\u6062\u590d\u524d\u5148\u6e05\u7406\u65e7\u6570\u636e\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u5e02\u9762\u4e0a\u4e5f\u6709\u5176\u4ed6\u5de5\u5177\uff0c\u6bd4\u5982\u903b\u8f91\u590d\u5236\u6216\u8005\u4e00\u4e9b\u5546\u4e1a\u8f6f\u4ef6\u3002\u4f46\u5bf9\u4e8e\u5927\u591a\u6570\u8fc1\u79fb\u573a\u666f\uff0c\u5c24\u5176\u662f\u8ffd\u6c42\u7b80\u5355\u3001\u76f4\u63a5\u3001\u53ef\u63a7\u7684\u56e2\u961f\uff0cpg_dump\u548cpg_restore\u7684\u7ec4\u5408\u62f3\u5df2\u7ecf\u8db3\u591f\u5f3a\u5927\u3002\u5b83\u4e0d\u6311\u73af\u5883\uff0cLinux\u3001Windows\u90fd\u80fd\u7528\uff0c\u800c\u4e14\u547d\u4ee4\u6e05\u6670\uff0c\u51fa\u4e86\u95ee\u9898\u4e5f\u5bb9\u6613\u6392\u67e5\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c31\u5e26\u4f60\u8d70\u4e00\u904d\u5b8c\u6574\u7684\u5b9e\u6218\u6d41\u7a0b\uff0c\u4ece\u51c6\u5907\u5230\u9a8c\u8bc1\uff0c\u628a\u6bcf\u4e2a\u73af\u8282\u7684\u7ec6\u8282\u548c\u5bb9\u6613\u8e29\u7684\u5751\u90fd\u8bb2\u6e05\u695a\u3002<\/p>\n<h3>2. \u8fc1\u79fb\u524d\u7684\u5173\u952e\u51c6\u5907\u5de5\u4f5c\uff1a\u78e8\u5200\u4e0d\u8bef\u780d\u67f4\u5de5<\/h3>\n<p>\u5728\u52a8\u624b\u6572\u547d\u4ee4\u4e4b\u524d\uff0c\u82b1\u70b9\u65f6\u95f4\u628a\u51c6\u5907\u5de5\u4f5c\u505a\u624e\u5b9e\uff0c\u80fd\u5e2e\u4f60\u907f\u5f00\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\u4e00\u5927\u534a\u7684\u5751\u3002\u8fd9\u4e00\u6b65\u7684\u6838\u5fc3\u5c31\u516b\u4e2a\u5b57\uff1a\u5fc3\u4e2d\u6709\u6570\uff0c\u73af\u5883\u5c31\u7eea\u3002\u6211\u4e60\u60ef\u5148\u5217\u4e00\u5f20\u73af\u5883\u4fe1\u606f\u5bf9\u7167\u8868\uff0c\u628a\u6e90\u670d\u52a1\u5668\u548c\u76ee\u6807\u670d\u52a1\u5668\u7684\u5173\u952e\u53c2\u6570\u90fd\u7406\u6e05\u695a\u3002\u4e0b\u9762\u8fd9\u4e2a\u8868\u683c\u662f\u6211\u5e38\u7528\u7684\u683c\u5f0f\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5957\u7528\uff1a<\/p>\n<table>\n<tr>\n   \u914d\u7f6e\u9879<br \/>\n   \u6e90\u6570\u636e\u5e93\u670d\u52a1\u5668 (Server A)<br \/>\n   \u76ee\u6807\u6570\u636e\u5e93\u670d\u52a1\u5668 (Server B)<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td style=\"text-align:left\">\u670d\u52a1\u5668IP\/\u4e3b\u673a\u540d<\/td>\n<td style=\"text-align:left\">192.168.1.100 (\u6216 host-a)<\/td>\n<td style=\"text-align:left\">192.168.1.200 (\u6216 host-b)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6570\u636e\u5e93\u540d\u79f0<\/td>\n<td style=\"text-align:left\">app_production<\/td>\n<td style=\"text-align:left\">app_production (\u5efa\u8bae\u540c\u540d\uff0c\u907f\u514d\u5e94\u7528\u914d\u7f6e\u6539\u52a8)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6570\u636e\u5e93\u8d85\u7ea7\u7528\u6237<\/td>\n<td style=\"text-align:left\">postgres<\/td>\n<td style=\"text-align:left\">postgres<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u4e1a\u52a1\u8fde\u63a5\u7528\u6237<\/td>\n<td style=\"text-align:left\">app_user<\/td>\n<td style=\"text-align:left\">app_user (\u9700\u63d0\u524d\u521b\u5efa)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">PostgreSQL\u7aef\u53e3<\/td>\n<td style=\"text-align:left\">5432<\/td>\n<td style=\"text-align:left\">5432<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u670d\u52a1\u5668\u7cfb\u7edf\u7528\u6237<\/td>\n<td style=\"text-align:left\">your_ssh_user<\/td>\n<td style=\"text-align:left\">your_ssh_user (\u7528\u4e8eSCP\u4f20\u8f93\u6587\u4ef6)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">PostgreSQL\u5927\u7248\u672c<\/td>\n<td style=\"text-align:left\">14.8<\/td>\n<td style=\"text-align:left\">14.8 (\u5f3a\u70c8\u5efa\u8bae\u4e00\u81f4\uff01)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u91cc\u6211\u7279\u522b\u60f3\u5f3a\u8c03\u4e00\u4e0b\u7248\u672c\u4e00\u81f4\u7684\u95ee\u9898\u3002\u867d\u7136pg_dump\u548cpg_restore\u5728\u4e0d\u540c\u5c0f\u7248\u672c\u95f4\u901a\u5e38\u517c\u5bb9\uff0c\u4f46\u5927\u7248\u672c\uff08\u6bd4\u5982\u4ecePostgreSQL 12\u8fc1\u79fb\u523015\uff09\u53ef\u80fd\u4f1a\u6709\u8bed\u6cd5\u6216\u5185\u90e8\u683c\u5f0f\u7684\u5dee\u5f02\u3002\u6700\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u4fdd\u8bc1\u76ee\u6807\u670d\u52a1\u5668\u7684PostgreSQL\u4e3b\u7248\u672c\u53f7\u7b49\u4e8e\u6216\u9ad8\u4e8e\u6e90\u670d\u52a1\u5668\u3002\u5982\u679c\u7248\u672c\u4e0d\u4e00\u81f4\uff0c\u5b98\u65b9\u5efa\u8bae\u4f7f\u7528\u76ee\u6807\u670d\u52a1\u5668\u7248\u672c\u7684pg_dump\u5de5\u5177\u53bb\u8fde\u63a5\u6e90\u5e93\u5bfc\u51fa\uff0c\u8fd9\u6837\u80fd\u4fdd\u8bc1\u5bfc\u51fa\u683c\u5f0f\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<p>\u9664\u4e86\u7248\u672c\uff0c\u8fd8\u6709\u51e0\u4e2a\u5fc5\u987b\u68c0\u67e5\u7684\u70b9\uff1a<\/p>\n<li>\u78c1\u76d8\u7a7a\u95f4\uff1a\u4f30\u7b97\u4e00\u4e0b\u4f60\u7684\u6570\u636e\u5e93\u5927\u5c0f\uff0c\u786e\u4fdd\u76ee\u6807\u670d\u52a1\u5668\u7684\u78c1\u76d8\u6709\u8db3\u591f\u7a7a\u95f4\u5b58\u653e\u5907\u4efd\u6587\u4ef6\u548c\u6062\u590d\u540e\u7684\u6570\u636e\u3002\u4e00\u4e2a\u7b80\u5355\u7684\u4f30\u7b97\u65b9\u6cd5\u662f\u67e5\u770b\u6e90\u5e93\u7684\u6570\u636e\u76ee\u5f55\u5927\u5c0f\u3002<\/li>\n<li>\u7f51\u7edc\u8fde\u901a\u6027\uff1a\u786e\u4fdd\u4f60\u80fd\u4ece\u64cd\u4f5c\u673a\uff08\u6216\u8005\u6e90\u670d\u52a1\u5668\uff09\u901a\u8fc7SSH\u8fde\u63a5\u5230\u76ee\u6807\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u76ee\u6807\u670d\u52a1\u5668\u7684PostgreSQL<\/li>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4e3a\u4ec0\u4e48\u9009\u62e9pg_dump\u548cpg_restore\u8fdb\u884c\u8de8\u670d\u52a1\u5668\u8fc1\u79fb\uff1f<br \/>\n\u5982\u679c\u4f60\u624b\u5934\u6709\u4e24\u53f0PostgreSQL\u670d\u52a1\u5668\uff0c\u9700\u8981\u628a\u6570\u636e\u4eceA\u642c\u5230B\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u5230\u5f88\u591a\u65b9\u6cd5\uff1a\u76f4\u63a5\u590d\u5236\u6570\u636e\u76ee\u5f55\u3001\u7528\u7b2c\u4e09\u65b9\u540c\u6b65\u5de5\u5177\uff0c\u6216\u8005\u5e72\u8106\u5199\u4e2a\u811a\u672c\u4e00\u6761\u6761\u8bb0\u5f55\u5bfc\u3002\u4f46\u6298\u817e\u4e00\u5708\u4e0b\u6765\uff0c\u4f60\u4f1a\u53d1\u73b0PostgreSQL\u5b98\u65b9\u81ea\u5e26\u7684pg_dump\u548cpg_restore\u8fd9\u5bf9\u7ec4\u5408\uff0c\u624d\u662f\u771f\u6b63\u7701\u5fc3\u53c8\u9760\u8c31\u7684\u201c\u9ec4\u91d1\u642d\u6863\u201d\u3002\u6211\u8fd9\u4e9b\u5e74\u5904\u7406\u8fc7\u4e0d\u5c11\u6570\u636e\u8fc1\u79fb\u7684\u6d3b\u513f\uff0c\u4ece\u51e0\u4e2aG\u7684\u5c0f\u5e93\u5230\u4e0aT\u7684\u5927\u5e93\u90fd\u641e\u8fc7\uff0c\u5b9e\u6218\u4e0b\u6765\u8fd9\u5957\u65b9\u6cd5\u6700\u7a33\u3002<br \/>\n\u7b80\u5355\u6765\u8bf4\uff0cpg_dump<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8266,8267,954,3326],"topic":[],"class_list":["post-99559","post","type-post","status-publish","format-standard","hentry","category-server","tag-pg_dump","tag-pg_restore","tag-postgresql","tag-3326"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/99559.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u4e3a\u4ec0\u4e48\u9009\u62e9pg_dump\u548cpg_restore\u8fdb\u884c\u8de8\u670d\u52a1\u5668\u8fc1\u79fb\uff1f \u5982\u679c\u4f60\u624b\u5934\u6709\u4e24\u53f0PostgreSQL\u670d\u52a1\u5668\uff0c\u9700\u8981\u628a\u6570\u636e\u4eceA\u642c\u5230B\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u5230\u5f88\u591a\u65b9\u6cd5\uff1a\u76f4\u63a5\u590d\u5236\u6570\u636e\u76ee\u5f55\u3001\u7528\u7b2c\u4e09\u65b9\u540c\u6b65\u5de5\u5177\uff0c\u6216\u8005\u5e72\u8106\u5199\u4e2a\u811a\u672c\u4e00\u6761\u6761\u8bb0\u5f55\u5bfc\u3002\u4f46\u6298\u817e\u4e00\u5708\u4e0b\u6765\uff0c\u4f60\u4f1a\u53d1\u73b0PostgreSQL\u5b98\u65b9\u81ea\u5e26\u7684pg_dump\u548cpg_restore\u8fd9\u5bf9\u7ec4\u5408\uff0c\u624d\u662f\u771f\u6b63\u7701\u5fc3\u53c8\u9760\u8c31\u7684\u201c\u9ec4\u91d1\u642d\u6863\u201d\u3002\u6211\u8fd9\u4e9b\u5e74\u5904\u7406\u8fc7\u4e0d\u5c11\u6570\u636e\u8fc1\u79fb\u7684\u6d3b\u513f\uff0c\u4ece\u51e0\u4e2aG\u7684\u5c0f\u5e93\u5230\u4e0aT\u7684\u5927\u5e93\u90fd\u641e\u8fc7\uff0c\u5b9e\u6218\u4e0b\u6765\u8fd9\u5957\u65b9\u6cd5\u6700\u7a33\u3002 \u7b80\u5355\u6765\u8bf4\uff0cpg_dump\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/99559.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-02T12:25:03+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99559.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/99559.html\",\"name\":\"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-02T12:25:03+00:00\",\"dateModified\":\"2026-09-02T12:25:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/99559.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/99559.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99559.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/99559.html","og_locale":"zh_CN","og_type":"article","og_title":"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u4e3a\u4ec0\u4e48\u9009\u62e9pg_dump\u548cpg_restore\u8fdb\u884c\u8de8\u670d\u52a1\u5668\u8fc1\u79fb\uff1f \u5982\u679c\u4f60\u624b\u5934\u6709\u4e24\u53f0PostgreSQL\u670d\u52a1\u5668\uff0c\u9700\u8981\u628a\u6570\u636e\u4eceA\u642c\u5230B\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u5230\u5f88\u591a\u65b9\u6cd5\uff1a\u76f4\u63a5\u590d\u5236\u6570\u636e\u76ee\u5f55\u3001\u7528\u7b2c\u4e09\u65b9\u540c\u6b65\u5de5\u5177\uff0c\u6216\u8005\u5e72\u8106\u5199\u4e2a\u811a\u672c\u4e00\u6761\u6761\u8bb0\u5f55\u5bfc\u3002\u4f46\u6298\u817e\u4e00\u5708\u4e0b\u6765\uff0c\u4f60\u4f1a\u53d1\u73b0PostgreSQL\u5b98\u65b9\u81ea\u5e26\u7684pg_dump\u548cpg_restore\u8fd9\u5bf9\u7ec4\u5408\uff0c\u624d\u662f\u771f\u6b63\u7701\u5fc3\u53c8\u9760\u8c31\u7684\u201c\u9ec4\u91d1\u642d\u6863\u201d\u3002\u6211\u8fd9\u4e9b\u5e74\u5904\u7406\u8fc7\u4e0d\u5c11\u6570\u636e\u8fc1\u79fb\u7684\u6d3b\u513f\uff0c\u4ece\u51e0\u4e2aG\u7684\u5c0f\u5e93\u5230\u4e0aT\u7684\u5927\u5e93\u90fd\u641e\u8fc7\uff0c\u5b9e\u6218\u4e0b\u6765\u8fd9\u5957\u65b9\u6cd5\u6700\u7a33\u3002 \u7b80\u5355\u6765\u8bf4\uff0cpg_dump","og_url":"https:\/\/www.wsisp.com\/helps\/99559.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-02T12:25:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/99559.html","url":"https:\/\/www.wsisp.com\/helps\/99559.html","name":"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-02T12:25:03+00:00","dateModified":"2026-09-02T12:25:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/99559.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/99559.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/99559.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"PostgreSQL\u8de8\u670d\u52a1\u5668\u6570\u636e\u8fc1\u79fb\u5b9e\u6218\uff1a\u4ecepg_dump\u5230pg_restore\u5168\u6d41\u7a0b\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=99559"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99559\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=99559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=99559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=99559"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=99559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}