{"id":41734,"date":"2023-05-17T22:32:12","date_gmt":"2023-12-08T01:33:27","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/"},"modified":"2024-04-30T04:41:23","modified_gmt":"2024-04-29T20:41:23","slug":"%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/","title":{"rendered":"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u4f60\u597d\uff01\u6211\u662fInsight Technology\u7684\u677e\u5c3e\u3002<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u652f\u6301Oracle Database SE \/ SQL Server \/ PostgreSQL \u7684DR\u89e3\u51b3\u65b9\u6848\uff0c\u5373Dbvisit StandbyMP\u7684\u8bd5\u7528\u73af\u5883\u3002\u6211\u4eec\u5c06\u5229\u7528\u8fd9\u4e2a\u73af\u5883\u6765\u5b9e\u9645\u4f53\u9a8c\u5f53\u707e\u96be\u53d1\u751f\u65f6\uff0c\u6570\u636e\u5e93\u662f\u5982\u4f55\u5207\u6362\u7684\u3002\u4ece\u51c6\u5907\u73af\u5883\u5230\u5b9e\u9645\u6d4b\u8bd5\uff0c\u5927\u7ea6\u53ea\u9700\u898130\u5206\u949f\uff0c\u800c\u4e14\u662f\u514d\u8d39\u7684\u3002\u6240\u4ee5\uff0c\u5982\u679c\u60a8\u6b63\u5728\u8003\u8651\u6570\u636e\u5e93\u7684DR\u4ea7\u54c1\uff0c\u6216\u8005\u60f3\u8981\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u7684\u8bdd\uff0c\u8bf7\u52a1\u5fc5\u8bd5\u4e00\u8bd5\u3002<\/p>\n<h2>\u9996\u5148\uff0c\u4ec0\u4e48\u662fPostgreSQL\u7684DR\uff08\u707e\u96be\u6062\u590d\uff09\u7b56\u7565\uff1f<\/h2>\n<p>\u6570\u636e\u5e93\u7684\u707e\u5907\uff08Disaster Recovery\uff0cDR\uff0c\u707e\u96be\u6062\u590d\uff09\u662f\u4e00\u79cd\u673a\u5236\uff0c\u5b83\u5728\u53d1\u751f\u707e\u5bb3\u6216\u6545\u969c\u65f6\uff0c\u901a\u8fc7\u7269\u7406\u4e0a\u5c06\u751f\u4ea7\u73af\u5883\u6570\u636e\u5e93\uff08\u539f\u59cb\u6570\u636e\u5e93\uff09\u7684\u526f\u672c\u4fdd\u7559\u5728\u8fdc\u79bb\u7684\u5730\u65b9\uff0c\u5e76\u5728\u51fa\u73b0\u707e\u5bb3\u65f6\u5207\u6362\u5e76\u4f7f\u7528\u6570\u636e\u5e93\u3002\u5728PostgreSQL\u4e2d\uff0c\u901a\u5e38\u4f7f\u7528\u6d41\u5f0f\u590d\u5236\u6216WAL\u6587\u4ef6\u4f20\u8f93\u6765\u6784\u5efa\u707e\u5907\u3002\u5b83\u4f5c\u4e3a\u6807\u51c6\u529f\u80fd\u5185\u7f6e\uff0c\u4f46\u5728\u4f7f\u7528\u65f6\u9700\u8981\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u6216\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u64cd\u4f5c\uff0c\u57fa\u672c\u4e0a\u662f\u57fa\u4e8e\u6587\u672c\u7684\u64cd\u4f5c\u3002\u6211\u8ba4\u4e3a\u5bf9\u4e8e\u7cbe\u901aPostgreSQL\u7684\u5de5\u7a0b\u5e08\u6765\u8bf4\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u6211\u8ba4\u4e3a\u4e0d\u53ef\u80fd\u4e00\u76f4\u8ba9\u8fd9\u6837\u7684\u5de5\u7a0b\u5e08\u51c6\u5907\u597d\u5e94\u5bf9\u707e\u5bb3\u3002\u8bf7\u60f3\u8c61\u4e00\u4e0b\u5f53\u53d1\u751f\u6545\u969c\u5bfc\u81f4\u751f\u4ea7\u73af\u5883\u65e0\u6cd5\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u9002\u5e94\u8bb8\u591a\u73af\u5883\u7684\u60c5\u51b5\u3002\u4f7f\u7528DR\u8f6f\u4ef6\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u548c\u786e\u8ba4DR\u914d\u7f6e\uff0c\u5e76\u81ea\u52a8\u5207\u6362\u5230\u5907\u7528\u73af\u5883\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u6765\u4f53\u9a8cDR\u8f6f\u4ef6\u5427\uff01<\/h2>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u4f7f\u7528\u9002\u7528\u4e8eOracle Database SE \/ SQL Server \/ PostgreSQL\u7684DR\u8f6f\u4ef6Dbvisit StandbyMP\u7684\u6d4b\u8bd5\u73af\u5883\uff08Test drive\uff09\uff0c\u5e76\u901a\u8fc7\u8bbe\u7f6e\u4ee5\u53ca\u5728PostgreSQL\u4e0a\u8fdb\u884c\u7684\u5b9e\u9645\u4f53\u9a8c\u6765\u5207\u6362\u5230\u4e3b\u670d\u52a1\u5668\u548c\u5907\u7528\u670d\u52a1\u5668\uff08Switch over\uff09\u4ee5\u53ca\u6545\u969c\u5207\u6362\uff08\u5728\u6545\u969c\u53d1\u751f\u65f6\u81ea\u52a8\u5207\u6362\u5230\u5907\u7528\u670d\u52a1\u5668\uff09\u3002\u6d4b\u8bd5\u73af\u5883\u4e2d\u63d0\u4f9b\u4e86\u7528\u4e8e\u4f53\u9a8c\u7684PostgreSQL\uff0c\u56e0\u6b64\u53ef\u4ee5\u8f7b\u677e\u8fdb\u884c\u4f53\u9a8c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u9884\u7ea6\u8bd5\u9a7e\u548c\u542f\u52a8\u8f66\u8f86\u7684\u7533\u8bf7<\/h3>\n<p>\u6211\u4eec\u5f00\u59cb\u8fdb\u884c\u8bd5\u9a7e\u5427\u3002\u8bbf\u95eehttps:\/\/testdrive.dbvisit.com\/ \u540e\uff0c\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u754c\u9762\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/13-0.png\" alt=\"00testdrive.png\" \/><\/div>\n<p>\u53ea\u9700\u8f93\u5165\u59d3\u540d\u548c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u7acb\u5373\u5f00\u59cb\u8f93\u5165\u5427\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/15-0.png\" alt=\"01testdrive_config.png\" \/><\/div>\n<p>\u5f00\u59cb\u6784\u5efa\u6d4b\u8bd5\u9a7e\u9a76\u3002\u5927\u7ea6\u9700\u89812\u5206\u949f\u5b8c\u6210\uff0c\u671f\u95f4\u53ef\u4ee5\u89c2\u770b\u4ea7\u54c1\u4ecb\u7ecd\u89c6\u9891\u266a\u6784\u5efa\u5b8c\u6210\u540e\uff0c\u5c06\u663e\u793a\u6240\u9700\u7684\u8bbf\u95ee\u4fe1\u606f\u7b49\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/17-0.png\" alt=\"02testdrive_starthere.png\" \/><\/div>\n<p>\u5f53\u60a8\u8bbf\u95ee\u300cSTART HERE\u300d\u4e0a\u6240\u5217\u7684\u300cCONTROL CENTER HOMEPAGE\u300d\u4e2d\u7684URL\u65f6\uff0c\u5c06\u4f1a\u663e\u793a\u767b\u5f55\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/19-0.png\" alt=\"03login.png\" \/><\/div>\n<p>\u5728\u767b\u5f55\u754c\u9762\u4e0a\uff0c\u4f7f\u7528\u540c\u6837\u663e\u793a\u4e3a\u201cSTART HERE\u201d\u7684\u7528\u6237\u540d\u79f0\u548c\u5bc6\u7801\u8fdb\u884c\u767b\u5f55\u3002\u767b\u5f55\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5de6\u4fa7\u83dc\u5355\u4e2d\u7684\u201cSETTING\u201d\u9009\u9879\u5c06\u8bed\u8a00\u66f4\u6539\u4e3a\u65e5\u8bed\u3002\u66f4\u6539\u540e\uff0c\u4f1a\u518d\u6b21\u8fd4\u56de\u767b\u5f55\u754c\u9762\uff0c\u5e76\u663e\u793a\u65e5\u8bed\u7684\u767b\u5f55\u754c\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/21-0.png\" alt=\"04login_ja.png\" \/><\/div>\n<h3>DR\u7684\u6784\u9020\u548c\u64cd\u4f5c<\/h3>\n<p>\u73b0\u5728\u6211\u4eec\u9a6c\u4e0a\u6765\u6ce8\u518cPostgreSQL\u3002\u8bf7\u70b9\u51fb\u201cStart with PostgreSQL\u201d\u3002\u4e00\u65e6\u70b9\u51fb\uff0c\u5c06\u4f1a\u5f39\u51fa\u4e00\u4e2a\u9009\u62e9\u5df2\u6ce8\u518c\uff08\u5df2\u5b89\u88c5\u4e86Dbvisit\u7684\u4ee3\u7406\u7a0b\u5e8f\uff09\u6570\u636e\u5e93\u7684\u753b\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/24-1.png\" alt=\"06select_host.png\" \/><\/div>\n<p>\u9009\u62e9\u5e26\u6709\u300cpsql1\uff5e\u300d\u6807\u8bc6\u7684\u6570\u636e\u5e93\u3002\u540c\u6837\u5730\uff0c\u5728Standby\uff08\u5907\u673a\uff09\u4e2d\u9009\u62e9\u5e26\u6709\u300cpsql2\uff5e\u300d\u6807\u8bc6\u7684\u6570\u636e\u5e93\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/26-0.png\" alt=\"07license.png\" \/><\/div>\n<p>\u70b9\u51fb\u300c\u521b\u5efa\u914d\u7f6e\u300d\u3002 PostgreSQL DR\u914d\u7f6e\u5c06\u88ab\u6ce8\u518c\u5230\u4eea\u8868\u677f\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/28-0.png\" alt=\"08before.png\" \/><\/div>\n<p>\u5728\u8fd9\u4e2a\u9636\u6bb5\uff0c\u53ea\u6709DR\u914d\u7f6e\u88ab\u6ce8\u518c\uff0c\u56e0\u6b64\u70b9\u51fb\u201c\u7acb\u5373\u8bbe\u7f6e\u5417\uff1f\u201d\u3002\u5728\u8fd9\u91cc\uff0c\u53ef\u4ee5\u9009\u62e9Dbvisit StandbyMP\u652f\u6301\u7684\u590d\u5236\u65b9\u6cd5\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u8981\u6c42\uff0c\u5e94\u9009\u62e9\u6301\u7eed\u5730\u4f7f\u7528PostgreSQL\u65e5\u5fd7\uff08WAL\uff09\u6d41\u5f0f\u4f20\u8f93\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u70ed\u5907\u4efd\u6216\u6e29\u5907\u4efd\u3002\u70ed\u5907\u4efd\u5141\u8bb8\u8bfb\u53d6\u8bbf\u95ee\uff0c\u800c\u6e29\u5907\u4efd\u5219\u4e0d\u5141\u8bb8\u8bfb\u53d6\u8bbf\u95ee\u3002<\/p>\n<p>\u6700\u540e\uff0c\u70b9\u51fb\u201c\u521b\u5efa\u5907\u7528\u6570\u636e\u5e93\u201d\uff0c\u521b\u5efa\u4e00\u4e2a\u5907\u7528\u6570\u636e\u5e93\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/31-1.png\" alt=\"10processing.png\" \/><\/div>\n<p>\u5f53\u521b\u5efa\u4e86\u4e00\u4e2a\u5f85\u547d\u6570\u636e\u5e93\uff0c\u4eea\u8868\u677f\u4e0a\u7684\u5f85\u547d\u6570\u636e\u5e93\u5c06\u53d8\u4e3a\u201c\u70ed\u5907\u7528\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/33-0.png\" alt=\"11configured.png\" \/><\/div>\n<p>\u90a3\u4e48\uff0cPostgreSQL\u76ee\u524d\u5904\u4e8e\u4ec0\u4e48\u6837\u7684\u72b6\u6001\u5462\uff1f<\/p>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u767b\u5f55\u5230\u5df2\u8bbe\u7f6e\u4e86PostgreSQL\u7684\u4e3b\u673a\u4e0a\u8fdb\u884cSSH\u767b\u5f55\u3002\u6211\u4eec\u5206\u522b\u770b\u770bpsql1\u548cpsql2\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cSSH\u767b\u5f55\u6240\u9700\u7684\u4fe1\u606f\u5305\u542b\u5728\u90e8\u7f72\u540e\u663e\u793a\u7684\u4fe1\u606f\u4e2d\u3002\u6839\u636e\u9009\u62e9\u7684WAL\u6d41\u5f0f\u4f20\u8f93\u65b9\u5f0f\uff0c\u770b\u8d77\u6765\u6b63\u5728\u4f7f\u7528PostgreSQL\u7684\u6d41\u590d\u5236\u529f\u80fd\u3002\u56e0\u6b64\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528\u786e\u8ba4\u590d\u5236\u72b6\u6001\u7684\u547d\u4ee4\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<p>\u5728\u521d\u7ea7\u65b9\u9762<\/p>\n<pre class=\"post-pre\"><code>postgres@psql1:~<span class=\"nv\">$ <\/span>psql <span class=\"nt\">-U<\/span> postgres\r\npsql <span class=\"o\">(<\/span>14.9 <span class=\"o\">(<\/span>Ubuntu 14.9-0ubuntu0.22.04.1<span class=\"o\">))<\/span>\r\nType <span class=\"s2\">\"help\"<\/span> <span class=\"k\">for <\/span>help.\r\n\r\n<span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># select * from pg_stat_replication;<\/span>\r\n pid  | usesysid | usename  | application_name |  client_addr   | client_hostname | client_port |         backend_start         | backend_xmin |   state   | sent_lsn  | write_lsn | flush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state |          reply_time\r\n<span class=\"nt\">------<\/span>+----------+----------+------------------+----------------+-----------------+-------------+-------------------------------+--------------+-----------+-----------+-----------+-----------+------------+-----------+-----------+------------+---------------+------------+-------------------------------\r\n 1595 |       10 | postgres | 14\/main          | 13.211.163.199 |                 |       48354 | 2023-10-11 15:16:06.005274+00 |              | streaming | 4\/6000148 | 4\/6000148 | 4\/6000148 | 4\/6000148  |           |           |            |             0 | async      | 2023-10-11 15:24:14.632479+00\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<p>\u5728\u5f85\u673a\u72b6\u6001\u4e0b<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># select * from pg_stat_wal_receiver;<\/span>\r\n pid  |  status   | receive_start_lsn | receive_start_tli | written_lsn | flushed_lsn | received_tli |      last_msg_send_time      |     last_msg_receipt_time     | latest_end_lsn |        latest_end_time        | slot_name |              sender_host              | sender_port |                                                                                                                                                 conninfo\r\n<span class=\"nt\">------<\/span>+-----------+-------------------+-------------------+-------------+-------------+--------------+------------------------------+-------------------------------+----------------+-------------------------------+-----------+---------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n 1977 | streaming | 4\/6000000         |                 1 | 4\/6000148   | 4\/6000148   |            1 | 2023-10-11 15:29:15.07852+00 | 2023-10-11 15:29:15.078463+00 | 4\/6000148      | 2023-10-11 15:19:44.239284+00 | dbvisit_1 | psql1-43E255BE16DD4A02.mp-standby.com |        5432 | <span class=\"nv\">user<\/span><span class=\"o\">=<\/span>postgres <span class=\"nv\">password<\/span><span class=\"o\">=<\/span><span class=\"k\">********<\/span> <span class=\"nv\">channel_binding<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">dbname<\/span><span class=\"o\">=<\/span>replication <span class=\"nv\">host<\/span><span class=\"o\">=<\/span>psql1-43E255BE16DD4A02.mp-standby.com <span class=\"nv\">port<\/span><span class=\"o\">=<\/span>5432 <span class=\"nv\">fallback_application_name<\/span><span class=\"o\">=<\/span>14\/main <span class=\"nv\">sslmode<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">sslcompression<\/span><span class=\"o\">=<\/span>0 <span class=\"nv\">sslsni<\/span><span class=\"o\">=<\/span>1 <span class=\"nv\">ssl_min_protocol_version<\/span><span class=\"o\">=<\/span>TLSv1.2 <span class=\"nv\">gssencmode<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">krbsrvname<\/span><span class=\"o\">=<\/span>postgres <span class=\"nv\">target_session_attrs<\/span><span class=\"o\">=<\/span>any\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<p>\u5c1d\u8bd5\u521b\u5efa\u6216\u68c0\u67e5\u4e00\u4e2a\u9002\u5f53\u7684\u8868\uff0c\u60a8\u5c06\u80fd\u591f\u786e\u8ba4\u5b83\u662f\u5426\u88ab\u590d\u5236\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c<\/p>\n<p>\u4e3b\u8981\u65b9\u9762<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># create table table1 (col1 int);<\/span>\r\nCREATE TABLE\r\n<span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># insert into table1 values (1);<\/span>\r\nINSERT 0 1\r\n<\/code><\/pre>\n<p>\u5728\u5f85\u547d\u7684\u4e00\u4fa7<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># \\dt<\/span>\r\n         List of relations\r\n Schema |  Name  | Type  |  Owner\r\n<span class=\"nt\">--------<\/span>+--------+-------+----------\r\n public | table1 | table | postgres\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n\r\n<span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># select * from table1;<\/span>\r\n col1\r\n<span class=\"nt\">------<\/span>\r\n    1\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n\r\n<span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># insert into table1 values(2);<\/span>\r\nERROR:  cannot execute INSERT <span class=\"k\">in <\/span>a read-only transaction\r\n<\/code><\/pre>\n<h3>\u5207\u6362<\/h3>\n<p>\u5728\u53cc\u65b9\u6570\u636e\u5e93\u90fd\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u4e0b\uff0c\u5c06\u4e3b\u6570\u636e\u5e93\u4e0e\u5907\u7528\u6570\u636e\u5e93\u8fdb\u884c\u5207\u6362\u7684\u64cd\u4f5c\u79f0\u4e3a&#8221;\u5207\u6362&#8221;\u3002\u65e0\u8bba\u6570\u636e\u5e93\u7c7b\u578b\u5982\u4f55\uff0cDbvisit StandbyMP\u90fd\u53ef\u4ee5\u901a\u8fc7\u76f8\u540c\u7684\u64cd\u4f5c\u8fdb\u884c\u5207\u6362\u3002<\/p>\n<p>\u6267\u884c\u5207\u6362\u64cd\u4f5c\uff0c\u8bf7\u5728\u4eea\u8868\u677f\u4e0a\u7684\u76ee\u6807\u914d\u7f6e\u4e2d\u70b9\u51fb\u201c\u5904\u7406\u201d\u3002\u7136\u540e\u4ece\u53f3\u4fa7\u663e\u793a\u7684\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u5207\u6362\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/48-0.png\" alt=\"12switchover.png\" \/><\/div>\n<p>\u5f53\u51fa\u73b0\u786e\u8ba4\u753b\u9762\u65f6\uff0c\u4ece\u90a3\u91cc\u6267\u884c\u5207\u6362\u64cd\u4f5c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/50-0.png\" alt=\"13switchover_confirm.png\" \/><\/div>\n<p>\u6211\u8ba4\u4e3a\uff0c\u5f53\u6211\u67e5\u770b\u4eea\u8868\u76d8\u753b\u9762\u65f6\uff0c\u53ef\u4ee5\u786e\u8ba4\u6570\u636e\u5e93\u5df2\u88ab\u66f4\u6362\u3002<\/p>\n<p>\u5f53\u68c0\u67e5\u6570\u636e\u5e93\u7684\u72b6\u6001\u65f6\uff0c\u53ef\u4ee5\u770b\u5230&#8230; \u89d2\u8272\u786e\u5b9e\u5df2\u7ecf\u4ea4\u6362\u4e86\u3002<\/p>\n<p>\u5728psql1\uff08Standby\uff09\u7aef\u4e0a\uff0c<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># select * from pg_stat_wal_receiver;<\/span>\r\n pid  |  status   | receive_start_lsn | receive_start_tli | written_lsn | flushed_lsn | received_tli |      last_msg_send_time       |     last_msg_receipt_time     | latest_end_lsn |       latest_end_time        | slot_name |              sender_host              | sender_port |                                                                                                                                                 conninfo\r\n<span class=\"nt\">------<\/span>+-----------+-------------------+-------------------+-------------+-------------+--------------+-------------------------------+-------------------------------+----------------+------------------------------+-----------+---------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n 2112 | streaming | 4\/8000000         |                 1 | 4\/9000158   | 4\/9000158   |            1 | 2023-10-11 15:38:46.041232+00 | 2023-10-11 15:38:46.041319+00 | 4\/9000158      | 2023-10-11 15:38:15.99787+00 | dbvisit_1 | psql2-43E255BE16DD4A02.mp-standby.com |        5432 | <span class=\"nv\">user<\/span><span class=\"o\">=<\/span>postgres <span class=\"nv\">password<\/span><span class=\"o\">=<\/span><span class=\"k\">********<\/span> <span class=\"nv\">channel_binding<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">dbname<\/span><span class=\"o\">=<\/span>replication <span class=\"nv\">host<\/span><span class=\"o\">=<\/span>psql2-43E255BE16DD4A02.mp-standby.com <span class=\"nv\">port<\/span><span class=\"o\">=<\/span>5432 <span class=\"nv\">fallback_application_name<\/span><span class=\"o\">=<\/span>14\/main <span class=\"nv\">sslmode<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">sslcompression<\/span><span class=\"o\">=<\/span>0 <span class=\"nv\">sslsni<\/span><span class=\"o\">=<\/span>1 <span class=\"nv\">ssl_min_protocol_version<\/span><span class=\"o\">=<\/span>TLSv1.2 <span class=\"nv\">gssencmode<\/span><span class=\"o\">=<\/span>prefer <span class=\"nv\">krbsrvname<\/span><span class=\"o\">=<\/span>postgres <span class=\"nv\">target_session_attrs<\/span><span class=\"o\">=<\/span>any\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<p>\u5728\u4e3b\u8981\u7684psql2\u4e00\u4fa7<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">postgres<\/span><span class=\"o\">=<\/span><span class=\"c\"># select * from pg_stat_replication;<\/span>\r\n pid  | usesysid | usename  | application_name |  client_addr  | client_hostname | client_port |         backend_start         | backend_xmin |   state   | sent_lsn  | write_lsn | flush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state |          reply_time\r\n<span class=\"nt\">------<\/span>+----------+----------+------------------+---------------+-----------------+-------------+-------------------------------+--------------+-----------+-----------+-----------+-----------+------------+-----------+-----------+------------+---------------+------------+-------------------------------\r\n 2242 |       10 | postgres | 14\/main          | 54.253.33.159 |                 |       38038 | 2023-10-11 15:37:03.772446+00 |              | streaming | 4\/9000060 | 4\/9000060 | 4\/9000060 | 4\/9000060  |           |           |            |             0 | async      | 2023-10-11 15:37:36.615552+00\r\n<span class=\"o\">(<\/span>1 row<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<h3>\u81ea\u52a8\u6545\u969c\u8f6c\u79fb<\/h3>\n<p>\u597d\u7684\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u5c1d\u8bd5\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u3002\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u662f\u5728\u4e3b\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u65f6\uff0c\u81ea\u52a8\u5c06\u5907\u7528\u670d\u52a1\u5668\u5207\u6362\u4e3a\u4e3b\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5728Dbvisit StandbyMP\u4e2d\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u672a\u8bbe\u7f6e\u81ea\u52a8\u6545\u969c\u5207\u6362\uff0c\u56e0\u6b64\u9700\u8981\u5148\u8fdb\u884c\u81ea\u52a8\u6545\u969c\u5207\u6362\u7684\u8bbe\u5b9a\u3002\u8bf7\u4ece\u53f3\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u81ea\u52a8\u6545\u969c\u5207\u6362\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/60-0.png\" alt=\"14failover_menu.png\" \/><\/div>\n<p>\u5728\u300c\u7d27\u6025\u64cd\u4f5c\u300d\u4e2d\u9009\u62e9\u201c\u6267\u884c\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u201d\u5e76\u4fdd\u5b58\u8bbe\u7f6e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/62-0.png\" alt=\"15failover_confirm.png\" \/><\/div>\n<p>\u597d\u5427\uff0c\u73b0\u5728\u8ba9\u6211\u4eec\u6765\u5c1d\u8bd5\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u3002<\/p>\n<p>\u7acb\u5373\u4f7f\u4e3b\u6570\u636e\u5e93\u65e0\u6cd5\u4f7f\u7528\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u8bd5\u56fe\u5f3a\u5236\u7ec8\u6b62PostgreSQL\u8fdb\u7a0b\u3002\u901a\u8fc7ssh\u767b\u5f55\u5230psql2\uff08\u56e0\u4e3a\u73b0\u5728\u6b63\u5728\u6267\u884c\u6545\u969c\u5207\u6362\uff0c\u6240\u4ee5psql2\u662f\u4e3b\u6570\u636e\u5e93\uff09\uff0c\u786e\u8ba4\u8fdb\u7a0bID\u540e\uff0c\u5f3a\u5236\u7ec8\u6b62\u8fdb\u7a0b\u3002<\/p>\n<pre class=\"post-pre\"><code>postgres@psql2:~<span class=\"nv\">$ <\/span>ps aux | <span class=\"nb\">grep <\/span>postgres\r\npostgres    1162  0.0  0.2 1468732 42056 ?       Ssl  01:16   0:01 \/PSQL_DATA\/dbvisit\/standbymp\/bin\/dbvagentmanager service run\r\npostgres    1919  0.0  0.2 1464904 33460 ?       Sl   01:20   0:02 \/PSQL_DATA\/dbvisit\/standbymp\/bin\/dbvhelper <span class=\"nt\">-agentManagerId<\/span> m0aaqak8xqg5 <span class=\"nt\">-directorId<\/span> 3snp568w9w3ia <span class=\"nt\">-hostAddress<\/span> psql2-7B921FA345BF47AC.mp-standby.com <span class=\"nt\">-natsAddress<\/span> controlcenter-7b921fa345bf47ac.mp-standby.com <span class=\"nt\">-natsPort<\/span> 5533 <span class=\"nt\">-configurationType<\/span> PostgreSQL <span class=\"nt\">-helperProcessKey<\/span> postgresql:m0aaqak8xqg5\r\npostgres    2063  0.0  0.1 218672 30080 ?        Ss   02:10   0:00 \/usr\/lib\/postgresql\/14\/bin\/postgres <span class=\"nt\">-D<\/span> \/var\/lib\/postgresql\/14\/main <span class=\"nt\">-c<\/span> <span class=\"nv\">config_file<\/span><span class=\"o\">=<\/span>\/etc\/postgresql\/14\/main\/postgresql.conf\r\npostgres    2064  0.0  0.0  73208  6944 ?        Ss   02:10   0:00 postgres: 14\/main: logger\r\npostgres    2066  0.0  0.0 218672  7364 ?        Ss   02:10   0:00 postgres: 14\/main: checkpointer\r\npostgres    2067  0.0  0.0 218672  8516 ?        Ss   02:10   0:00 postgres: 14\/main: background writer\r\npostgres    2068  0.0  0.0 218672 11588 ?        Ss   02:10   0:00 postgres: 14\/main: walwriter\r\npostgres    2069  0.0  0.0 219344  9924 ?        Ss   02:10   0:00 postgres: 14\/main: autovacuum launcher\r\npostgres    2070  0.0  0.0  73440  7108 ?        Ss   02:10   0:00 postgres: 14\/main: stats collector\r\npostgres    2071  0.0  0.0 219088  9156 ?        Ss   02:10   0:00 postgres: 14\/main: logical replication launcher\r\npostgres    2083  0.0  0.0 219964 14532 ?        Ss   02:10   0:00 postgres: 14\/main: walsender postgres 52.64.9.21<span class=\"o\">(<\/span>38302<span class=\"o\">)<\/span> streaming 4\/7000060\r\nroot        2097  0.1  0.0  17164 10672 ?        Ss   02:11   0:00 sshd: postgres <span class=\"o\">[<\/span>priv]\r\npostgres    2117  0.1  0.0  17036  9472 ?        Ss   02:11   0:00 \/lib\/systemd\/systemd <span class=\"nt\">--user<\/span>\r\npostgres    2118  0.0  0.0 170552  6708 ?        S    02:11   0:00 <span class=\"o\">(<\/span>sd-pam<span class=\"o\">)<\/span>\r\npostgres    2180  0.0  0.0  17300  7820 ?        S    02:11   0:00 sshd: postgres@pts\/0\r\npostgres    2181  0.0  0.0   9100  4992 pts\/0    Ss   02:11   0:00 <span class=\"nt\">-bash<\/span>\r\npostgres    2198  0.0  0.0  10460  3200 pts\/0    R+   02:12   0:00 ps aux\r\npostgres    2199  0.0  0.0   7004  2304 pts\/0    R+   02:12   0:00 <span class=\"nb\">grep <\/span>postgres\r\n<\/code><\/pre>\n<p>\u8ba9\u6211\u4eec\u6740\u6389\u8fdb\u7a0b ID \u4e3a2063\u7684\u90a3\u4e2a\u3002<\/p>\n<pre class=\"post-pre\"><code>postgres@psql2:~<span class=\"nv\">$ <\/span><span class=\"nb\">kill<\/span> <span class=\"nt\">-KILL<\/span> 2063\r\npostgres@psql2:~<span class=\"nv\">$ <\/span>ps aux | <span class=\"nb\">grep <\/span>postgres\r\npostgres    1162  0.0  0.2 1468732 35624 ?       Ssl  01:16   0:01 \/PSQL_DATA\/dbvisit\/standbymp\/bin\/dbvagentmanager service run\r\npostgres    1919  0.0  0.2 1464904 33332 ?       Sl   01:20   0:02 \/PSQL_DATA\/dbvisit\/standbymp\/bin\/dbvhelper <span class=\"nt\">-agentManagerId<\/span> m0aaqak8xqg5 <span class=\"nt\">-directorId<\/span> 3snp568w9w3ia <span class=\"nt\">-hostAddress<\/span> psql2-7B921FA345BF47AC.mp-standby.com <span class=\"nt\">-natsAddress<\/span> controlcenter-7b921fa345bf47ac.mp-standby.com <span class=\"nt\">-natsPort<\/span> 5533 <span class=\"nt\">-configurationType<\/span> PostgreSQL <span class=\"nt\">-helperProcessKey<\/span> postgresql:m0aaqak8xqg5\r\nroot        2097  0.0  0.0  17164 10672 ?        Ss   02:11   0:00 sshd: postgres <span class=\"o\">[<\/span>priv]\r\npostgres    2117  0.0  0.0  17036  9472 ?        Ss   02:11   0:00 \/lib\/systemd\/systemd <span class=\"nt\">--user<\/span>\r\npostgres    2118  0.0  0.0 170552  6708 ?        S    02:11   0:00 <span class=\"o\">(<\/span>sd-pam<span class=\"o\">)<\/span>\r\npostgres    2180  0.0  0.0  17300  7820 ?        S    02:11   0:00 sshd: postgres@pts\/0\r\npostgres    2181  0.0  0.0   9100  4992 pts\/0    Ss   02:11   0:00 <span class=\"nt\">-bash<\/span>\r\npostgres    2212  0.0  0.0  10460  3200 pts\/0    R+   02:13   0:00 ps aux\r\npostgres    2213  0.0  0.0   7004  2304 pts\/0    R+   02:13   0:00 <span class=\"nb\">grep <\/span>postgres\r\npostgres@psql2:~<span class=\"err\">$<\/span>\r\n<\/code><\/pre>\n<p>\u786e\u8ba4\u4e86\u6d41\u5a92\u4f53\u7684\u65ad\u5f00\u4ee5\u53ca\u4e3b\u8981\u76d1\u63a7\u7684\u5931\u8d25\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/69-1.png\" alt=\"17fail1.png\" \/><\/div>\n<p>\u5728\u8bbe\u7f6e\u4e2d\uff0c\u7ecf\u8fc7 3 \u6b21\u786e\u8ba4\u5931\u8d25\u540e\uff0c\u5c06\u542f\u52a8\u6545\u969c\u8f6c\u79fb\uff0c\u5e76\u786e\u8ba4 psql1 \u5df2\u7ecf\u8bbe\u7f6e\u4e3a\u5728\u7ebf\u72b6\u6001\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/71-0.png\" alt=\"18failovered.png\" \/><\/div>\n<h2>\u6700\u540e<\/h2>\n<p>\u6211\u4f53\u9a8c\u4e86\u4f7f\u7528Dbvisit StandbyMP\u8fdb\u884cPostgreSQL\u7684\u5207\u6362\u64cd\u4f5c\uff08\u4eceDR\u73af\u5883\u5207\u6362\uff09\u4ee5\u53ca\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\uff08\u5728\u4e3b\u8981\u73af\u5883\u5b95\u673a\u65f6\u81ea\u52a8\u5207\u6362\uff09\u3002<\/p>\n<p>Dbvisit StandbyMP \u8fd8\u652f\u6301\u9664\u4e86\u4e4b\u524d\u4ecb\u7ecd\u7684PostgreSQL\u4e4b\u5916\uff0cOracle Database\u548cSQL Server\u3002\u5e0c\u671b\u4ee5\u4e0b\u9875\u9762\u4e5f\u80fd\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u4e0d\u4f7f\u7528\u8fd9\u6837\u7684\u8f6f\u4ef6\uff0c\u5728\u707e\u5bb3\u53d1\u751f\u65f6\u8fdb\u884c\u4ece\u5907\u4efd\u4e2d\u6062\u590d\u7b49\u64cd\u4f5c\u662f\u4e00\u9879\u76f8\u5f53\u7e41\u7410\u7684\u5de5\u4f5c\uff0c\u9700\u8981\u5efa\u7acb\u4e25\u5bc6\u7684\u6b65\u9aa4\u3002\u518d\u6b21\u5f3a\u8c03\uff0c\u60f3\u8c61\u4e00\u4e0b\u53d1\u751f\u6545\u969c\u5bfc\u81f4\u65e0\u6cd5\u4f7f\u7528\u751f\u4ea7\u73af\u5883\u7b49\u60c5\u51b5\u65f6\uff0c\u9700\u8981\u5bf9\u8bb8\u591a\u73af\u5883\u8fdb\u884c\u9002\u5e94\u3002\u5229\u7528\u707e\u96be\u6062\u590d\u4ea7\u54c1\uff0c\u9884\u5148\u51c6\u5907\u597d\u4ee5\u786e\u4fdd\u5728\u707e\u5bb3\u53d1\u751f\u65f6\u80fd\u591f\u7ee7\u7eed\u7ecf\u8425\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f60\u597d\uff01\u6211\u662fInsight Technology\u7684\u677e\u5c3e\u3002 \u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u652f\u6301Oracle Database SE [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41734","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdpostgresql\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\" \/>\n<meta property=\"og:description\" content=\"\u4f60\u597d\uff01\u6211\u662fInsight Technology\u7684\u677e\u5c3e\u3002 \u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u652f\u6301Oracle Database SE [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdpostgresql\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-08T01:33:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T20:41:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/13-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/\",\"name\":\"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-08T01:33:27+00:00\",\"dateModified\":\"2024-04-29T20:41:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdpostgresql\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848","og_description":"\u4f60\u597d\uff01\u6211\u662fInsight Technology\u7684\u677e\u5c3e\u3002 \u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u652f\u6301Oracle Database SE [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdpostgresql\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-08T01:33:27+00:00","article_modified_time":"2024-04-29T20:41:23+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d486337434c4406cab8ba\/13-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/","name":"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-08T01:33:27+00:00","dateModified":"2024-04-29T20:41:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u572830\u5206\u949f\u5185\u5c1d\u8bd5\u5b9e\u65bdPostgreSQL\u7684\u707e\u5907\u89e3\u51b3\u65b9\u6848"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a830%e5%88%86%e9%92%9f%e5%86%85%e5%b0%9d%e8%af%95%e5%ae%9e%e6%96%bdpostgresql%e7%9a%84%e7%81%be%e5%a4%87%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41734"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41734\/revisions"}],"predecessor-version":[{"id":89746,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41734\/revisions\/89746"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}