{"id":41749,"date":"2023-11-27T16:39:24","date_gmt":"2023-11-19T09:31:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/"},"modified":"2024-05-04T11:03:07","modified_gmt":"2024-05-04T03:03:07","slug":"%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/","title":{"rendered":"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3"},"content":{"rendered":"<h2>\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3<\/h2>\n<h4>\u5b89\u88c5repo<\/h4>\n<p>\u60f3\u8981\u786e\u8ba4 EC2 \u7684\u53d1\u884c\u7248\u548c\u7248\u672c\u5417\uff1f<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\"> #<\/span> <span class=\"nb\">cat<\/span> \/etc\/system-release\r\n<span class=\"go\"> Amazon Linux release 2 (Karoo)\r\n<\/span><\/code><\/pre>\n<p>\u7531\u4e8eAmazon Linux\u57fa\u4e8eRHEL7\uff0c\u56e0\u6b64\u4ece\u6b64\u5904\u5b89\u88c5repo\u6587\u4ef6\u3002<\/p>\n<blockquote><p>https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/p>\n<p>\u8bf7\u70b9\u51fb\u4e0a\u8ff0\u94fe\u63a5\u6765\u83b7\u53d6\u6700\u65b0\u7248\u7684pgdg-redhat\u8f6f\u4ef6\u4ed3\u5e93rpm\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u9002\u7528\u4e8eEL-7-x86_64\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p><\/blockquote>\n<p>\u4e0b\u8f7drepo\u6587\u4ef6\u3002<br \/>\n\u4f7f\u7528EC2\u7684root\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> wget <span class=\"nt\">--no-check-certificate<\/span> https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm\r\n<\/code><\/pre>\n<p>\u4f7f\u7528&#8211;nodeps\u9009\u9879\u8fdb\u884c\u5b89\u88c5\uff0c\u5ffd\u7565\u5bf9\/etc\/redhat-release\u6587\u4ef6\u7684\u4f9d\u8d56\u5173\u7cfb<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> rpm <span class=\"nt\">-Uvh<\/span> <span class=\"nt\">--nodeps<\/span> .\/pgdg-redhat-repo-latest.noarch.rpm\r\n<\/code><\/pre>\n<p>\u67e5\u770brepo<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> yum repolist\r\n<span class=\"go\">Loaded plugins: extras_suggestions, langpacks, priorities, update-motd\r\n27 packages excluded due to repository priority protections\r\nrepo id                      repo name                                           status\r\n!amzn2-core\/2\/x86_64         Amazon Linux 2 core repository                       26,253\r\namzn2extra-docker\/2\/x86_64   Amazon Extras repo for docker                            46\r\npgdg-common\/x86_64           PostgreSQL common RPMs for RHEL\/CentOS 7 - x86_64     320+6\r\npgdg10\/x86_64                PostgreSQL 10 for RHEL\/CentOS 7 - x86_64              972+7\r\npgdg11\/x86_64                PostgreSQL 11 for RHEL\/CentOS 7 - x86_64            1,075+4\r\npgdg12\/x86_64                PostgreSQL 12 for RHEL\/CentOS 7 - x86_64              657+1\r\npgdg13\/x86_64                PostgreSQL 13 for RHEL\/CentOS 7 - x86_64              390+1\r\npgdg14\/x86_64                PostgreSQL 14 for RHEL\/CentOS 7 - x86_64                120\r\npgdg96\/x86_64                PostgreSQL 9.6 for RHEL\/CentOS 7 - x86_64             933+8\r\ntreasuredata\/x86_64          TreasureData                                              5\r\nrepolist: 30,771\r\n<\/span><\/code><\/pre>\n<h4>\u7f16\u8f91\u5b58\u50a8\u5e93<\/h4>\n<p>\u5982\u679c\u4fdd\u6301\u8fd9\u6837\uff0cyum install \u5c06\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff0c\u6240\u4ee5\u9700\u8981\u7f16\u8f91 yum.repos.d \u6587\u4ef6\u3002<br \/>\n\u636e\u8bf4 $releasever \u53d8\u91cf\u4f1a\u5b58\u50a8 RHEL \u6216 CentOS \u7684\u7248\u672c\u53f7\uff08\u5982 7 \u6216 8\uff09\uff0c\u4f46\u5bf9\u4e8e EC2 \u7684 Amazon Linux\uff0c\u5b83\u4f1a\u5b58\u50a8\u4e3a system-release \u5b57\u7b26\u4e32\uff0c\u5bfc\u81f4 yum install \u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<br \/>\n\u53c2\u8003\uff1a\u3010CentOS7\u3011\u5982\u4f55\u83b7\u53d6 $releasever\u3001$basearch \u548c $infra \u7684\u503c\u3002<br \/>\n\u66ff\u6362\u7684 7 \u5e94\u8be5\u8868\u793a RHEL\/CentOS \u7684\u7248\u672c 7\u3002\u8fd9\u4f1a\u751f\u6210\u4e00\u4e2a\u8def\u5f84\uff0c\u8981\u6c42\u4f7f\u7528\u9488\u5bf9\u7248\u672c 7 \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> <span class=\"nb\">sed<\/span> <span class=\"nt\">--in-place<\/span> <span class=\"nt\">-e<\/span> <span class=\"s2\">\"s\/<\/span><span class=\"se\">\\$<\/span><span class=\"s2\">releasever\/7\/g\"<\/span> \/etc\/yum.repos.d\/pgdg-redhat-all.repo\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u8ba4\u4ed3\u5e93\u4e2d\u662f\u5426\u670912.3\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span>yum <span class=\"nt\">--showduplicates<\/span> search postgresql12-server\r\n<span class=\"go\">Loaded plugins: extras_suggestions, langpacks, priorities, update-motd\r\n27 packages excluded due to repository priority protections\r\n=========================== N\/S matched: postgresql12-server ===========================\r\npostgresql12-server-12.1-2PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.2-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.2-2PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.3-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.3-5PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.3-5PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.4-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.5-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.6-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.7-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\npostgresql12-server-12.8-1PGDG.rhel7.x86_64 : The programs needed to create and run a\r\n                                            : PostgreSQL server\r\n<\/span><\/code><\/pre>\n<h4>\u5b89\u88c5PostgreSQL<\/h4>\n<p>\u5b89\u88c5PostgreSQL 12.3\u670d\u52a1\u5668-12.3\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> yum <span class=\"nb\">install <\/span>postgresql12-server-12.3\r\n<\/code><\/pre>\n<p>\u6709\u70b9\u9ebb\u70e6\u3002\u5e94\u8be5\u662f\u8bf4AWS\u4e0a\u7528RDS\u5c31\u53ef\u4ee5\u4e86\u5427\u3002<\/p>\n<h2>\u8fdb\u884c postgres \u7684\u5b89\u88c5\u914d\u7f6e<\/h2>\n<p>\u521d\u59cb\u5316<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> \/usr\/pgsql-12\/bin\/postgresql-12-setup initdb\r\n<\/code><\/pre>\n<h4>PostgreSQL\u7684\u542f\u52a8\u8bbe\u7f6e<\/h4>\n<p>\u786e\u8ba4\u662f\u5426\u5728systemd\u4e2d\u6ce8\u518c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl list-unit-files |grep postgres\r\n<span class=\"go\">postgresql-12.service                         disabled\r\n<\/span><\/code><\/pre>\n<p>\u6211\u6709\u4e00\u4e2a\u5355\u5143\u6587\u4ef6\uff0c\u4f46\u662f\u81ea\u52a8\u542f\u52a8\u8bbe\u7f6e\u88ab\u7981\u7528\u4e86\u3002\u6211\u60f3\u8981\u5c06\u5176\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl <span class=\"nb\">enable <\/span>postgresql-12.service \r\n<span class=\"go\">Created symlink from \/etc\/systemd\/system\/multi-user.target.wants\/postgresql-12.service to \/usr\/lib\/systemd\/system\/postgresql-12.service.\r\n<\/span><\/code><\/pre>\n<p>\u5df2\u542f\u7528<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl list-unit-files |grep postgres\r\n<span class=\"go\">postgresql-12.service                         enabled \r\n<\/span><\/code><\/pre>\n<p>\u786e\u8ba4\u81ea\u52a8\u542f\u52a8\u811a\u672c<br \/>\n\u5728\/etc\/systemd\/system\/multi-user.target.wants\/\u76ee\u5f55\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u6307\u5411postgres\u811a\u672c\u7684\u94fe\u63a5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> ll \/etc\/systemd\/system\/multi-user.target.wants\/ | <span class=\"nb\">grep <\/span>postgres\r\n<span class=\"gp\">lrwxrwxrwx 1 root root 45 Oct  4 20:45 postgresql-12.service -&gt;<\/span> \/usr\/lib\/systemd\/system\/postgresql-12.service\r\n<\/code><\/pre>\n<h4>\u542f\u52a8PostgreSQL\u3002<\/h4>\n<p>\u6211\u6765\u68c0\u67e5\u4e00\u4e0b\u72b6\u6001\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl status postgresql-12.service \r\n<span class=\"go\">\u25cf postgresql-12.service - PostgreSQL 12 database server\r\n<\/span><span class=\"gp\">   Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql-12.service;<\/span> enabled<span class=\"p\">;<\/span> vendor preset: disabled<span class=\"o\">)<\/span>\r\n<span class=\"go\">   Active: inactive (dead)\r\n     Docs: https:\/\/www.postgresql.org\/docs\/12\/static\/\r\n<\/span><\/code><\/pre>\n<p>\u8bd5\u7740\u542f\u52a8<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl start postgresql-12.service \r\n<\/code><\/pre>\n<p>\u6211\u6765\u68c0\u67e5\u4e00\u4e0b\u72b6\u6001<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl status postgresql-12.service\r\n<span class=\"go\">\u25cf postgresql-12.service - PostgreSQL 12 database server\r\n<\/span><span class=\"gp\">   Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql-12.service;<\/span> enabled<span class=\"p\">;<\/span> vendor preset: disabled<span class=\"o\">)<\/span>\r\n<span class=\"gp\">   Active: active (running) since Mon 2021-10-04 20:47:53 JST;<\/span> 18s ago\r\n<span class=\"go\">     Docs: https:\/\/www.postgresql.org\/docs\/12\/static\/\r\n<\/span><span class=\"gp\">  Process: 2245 ExecStartPre=\/usr\/pgsql-12\/bin\/postgresql-12-check-db-dir $<\/span><span class=\"o\">{<\/span>PGDATA<span class=\"o\">}<\/span> <span class=\"o\">(<\/span><span class=\"nv\">code<\/span><span class=\"o\">=<\/span>exited, <span class=\"nv\">status<\/span><span class=\"o\">=<\/span>0\/SUCCESS<span class=\"o\">)<\/span>\r\n<span class=\"go\"> Main PID: 2252 (postmaster)\r\n   CGroup: \/system.slice\/postgresql-12.service\r\n           \u251c\u25002252 \/usr\/pgsql-12\/bin\/postmaster -D \/var\/lib\/pgsql\/12\/data\/\r\n           \u251c\u25002255 postgres: logger   \r\n           \u251c\u25002257 postgres: checkpointer   \r\n           \u251c\u25002258 postgres: background writer   \r\n           \u251c\u25002259 postgres: walwriter   \r\n           \u251c\u25002260 postgres: autovacuum launcher   \r\n           \u251c\u25002261 postgres: stats collector   \r\n           \u2514\u25002262 postgres: logical replication launcher   \r\n\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal systemd[1]: Starting P...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal postmaster[2252]: 2021...\r\nOct 04 20:47:53 ip-172-31-30-1.ap-northeast-1.compute.internal systemd[1]: Started Po...\r\nHint: Some lines were ellipsized, use -l to show in full.\r\n<\/span><\/code><\/pre>\n<h3>\u5c1d\u8bd5\u4f7f\u7528PostgreSQL\u5ba2\u6237\u7aef\u8fdb\u884c\u8fde\u63a5\u3002<\/h3>\n<p>\u7528psql\u547d\u4ee4\u4ecepostgres\u7528\u6237\u8fde\u63a5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> su - postgres\r\n<span class=\"gp\">-bash-4.2$<\/span> psql\r\n<span class=\"go\">psql (12.3)\r\nType \"help\" for help.\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<\/code><\/pre>\n<p>\u8fde\u63a5\u4e0a\u4e86\uff01\uff01<br \/>\n\u60a8\u53ef\u4ee5\u901a\u8fc7\\q\u9000\u51fa\u5ba2\u6237\u7aef\u3002<\/p>\n<h3>\u4ece\u4ed6\u4eba\u7684\u670d\u52a1\u5668\u7b49\u8fdb\u884c\u8fde\u63a5\u8bbe\u7f6e<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">postgres\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\/var\/lib\/pgsql\/12\/data\/pg_hba.conf\u306flocal\u304b\u3089\u306e\u63a5\u7d9a\u306fpeer\u8a8d\u8a3c\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001OS\u306epostgres\u30e6\u30fc\u30b6\u304b\u3089\u63a5\u7d9a\u3059\u308b<\/ul>\n<pre class=\"post-pre\"><code><span class=\"go\">local   all             all                                     peer\r\n<\/span><\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> su - postgres\r\n<span class=\"go\">Last login: Tue Oct  5 19:35:49 JST 2021 on pts\/0\r\n<\/span><span class=\"gp\">-bash-4.2$<\/span> psql\r\n<span class=\"go\">psql (12.3)\r\nType \"help\" for help.\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> ALTER USER postgres with encrypted password <span class=\"s1\">'xxxxxxxx'<\/span><span class=\"p\">;<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">md5\u8a8d\u8a3c\u306b\u5909\u66f4<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> TYPE  DATABASE        USER            ADDRESS                 METHOD\r\n\r\n<span class=\"gp\">#<\/span> <span class=\"s2\">\"local\"<\/span> is <span class=\"k\">for <\/span>Unix domain socket connections only\r\n<span class=\"go\">local   all             all                                     md5\r\n<\/span><span class=\"gp\">#<\/span> IPv4 <span class=\"nb\">local <\/span>connections:\r\n<span class=\"go\">host    all             all             127.0.0.1\/32            md5\r\n<\/span><span class=\"gp\">#<\/span> IPv6 <span class=\"nb\">local <\/span>connections:\r\n<span class=\"go\">host    all             all             ::1\/128                 md5\r\n<\/span><span class=\"gp\">#<\/span> Allow replication connections from localhost, by a user with the\r\n<span class=\"gp\">#<\/span> replication privilege.\r\n<span class=\"go\">local   replication     all                                     md5\r\nhost    replication     all             127.0.0.1\/32            md5\r\nhost    replication     all             ::1\/128                 md5\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u63a5\u7d9a\u8a2d\u5b9a\u3082\u5909\u66f4\/var\/lib\/pgsql\/12\/data\/postgresql.conf<\/ul>\n<pre class=\"post-pre\"><code><span class=\"go\">listen_addresses = '*'\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u8a2d\u5b9a\u53cd\u6620<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> systemctl reload postgresql-12.service \r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u63a5\u7d9a\u78ba\u8a8d<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> psql <span class=\"nt\">-U<\/span> postgres <span class=\"nt\">-W<\/span>\r\n<span class=\"go\">Password: \r\npsql (12.3)\r\nType \"help\" for help.\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 \u5b89\u88c5repo \u60f3\u8981\u786e\u8ba4 EC2 \u7684\u53d1\u884c\u7248\u548c\u7248\u672c\u5417\uff1f # cat  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41749","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>\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 - 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\/\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728ec2\u4e0a\u5b89\u88c5postgresql-12-3\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3\" \/>\n<meta property=\"og:description\" content=\"\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 \u5b89\u88c5repo \u60f3\u8981\u786e\u8ba4 EC2 \u7684\u53d1\u884c\u7248\u548c\u7248\u672c\u5417\uff1f # cat [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728ec2\u4e0a\u5b89\u88c5postgresql-12-3\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-19T09:31:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T03:03:07+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\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\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/\",\"name\":\"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-19T09:31:34+00:00\",\"dateModified\":\"2024-05-04T03:03:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3\"}]},{\"@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\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 - 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\/\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728ec2\u4e0a\u5b89\u88c5postgresql-12-3\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3","og_description":"\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 \u5b89\u88c5repo \u60f3\u8981\u786e\u8ba4 EC2 \u7684\u53d1\u884c\u7248\u548c\u7248\u672c\u5417\uff1f # cat [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728ec2\u4e0a\u5b89\u88c5postgresql-12-3\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-19T09:31:34+00:00","article_modified_time":"2024-05-04T03:03:07+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/","name":"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-19T09:31:34+00:00","dateModified":"2024-05-04T03:03:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010\u65b0\u624b\u3011\u3010\u5907\u5fd8\u3011\u5728EC2\u4e0a\u5b89\u88c5PostgreSQL 12.3"}]},{"@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\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e6%96%b0%e6%89%8b%e3%80%91%e3%80%90%e5%a4%87%e5%bf%98%e3%80%91%e5%9c%a8ec2%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-12-3%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\/41749","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41749"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41749\/revisions"}],"predecessor-version":[{"id":97940,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41749\/revisions\/97940"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}