{"id":42019,"date":"2022-11-17T16:23:48","date_gmt":"2023-07-10T14:07:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/"},"modified":"2024-04-29T01:10:43","modified_gmt":"2024-04-28T17:10:43","slug":"%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/","title":{"rendered":"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1"},"content":{"rendered":"<p>\u5b89\u88c5RPM\u5305\u5e76\u5728RHEL8\u73af\u5883\u4e0b\u90e8\u7f72PostgreSQL12\uff0c\u5e76\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u64cd\u4f5c\u9a8c\u8bc1\u3002<\/p>\n<h1>\u8bb0\u5f55\u5185\u5bb9<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ee5\u4e0b\u662f\u7528\u4e2d\u6587\u91cd\u65b0\u8868\u8fbe\u7684\u5185\u5bb9\uff1a<\/ol>\n<\/li>\n<\/ol>\n<p>\u4e8b\u524d\u51c6\u5907\uff08\u4e0b\u8f7dPostgreSQL\u4f7f\u7528\u7684RPM\u6587\u4ef6\uff09<br \/>\n\u5b89\u88c5PostgreSQL12\uff08\u89e3\u538bRPM\u6587\u4ef6\uff09<br \/>\n\u8fdb\u884cPostgreSQL\u7684\u521d\u59cb\u8bbe\u7f6e<br \/>\n\u521b\u5efa\u65b0\u89d2\u8272\u5e76\u8fdb\u884c\u6570\u636e\u5e93\u8fde\u63a5\u8bbe\u7f6e<br \/>\n\u521b\u5efa\u6a21\u5f0f\/\u8868<br \/>\n\u6267\u884c\u8868\u7684\u6570\u636e\u64cd\u4f5c\uff08\u63d2\u5165\/\u67e5\u8be2\/\u66f4\u65b0\/\u5220\u9664\uff09<\/p>\n<h1>\u524d\u63d0\u73af\u5883 t\u00ed<\/h1>\n<p>\u5bbf\u4e3b\u64cd\u4f5c\u7cfb\u7edf\uff1amacOS Catalina 10.15.1<br \/>\n\u865a\u62df\u5316\u8f6f\u4ef6\uff1aVirtualBox \u7248\u672c 6.1.0 r135406<br \/>\n\u5ba2\u6237\u64cd\u4f5c\u7cfb\u7edf\uff1aRed Hat Enterprise Linux \u7248\u672c 8.0 (Ootpa)<br \/>\n\u5ba2\u6237\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff1a4.18.0-80.el8.x86_64<br \/>\nPostgreSQL \u7248\u672c\uff1a12.1<\/p>\n<h1>\u4e8b\u524d\u51c6\u5907<\/h1>\n<ul class=\"post-ul\">RPM\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9&amp;RHEL8\u74b0\u5883\u3078\u306e\u8ee2\u9001<\/ul>\n<p>\u4ecePostgreSQL\u793e\u533a\u7f51\u7ad9\u7684\u4ed3\u5e93\u4e2d\u4e0b\u8f7dRPM\u6587\u4ef6<br \/>\nhttps:\/\/yum.postgresql.org\/12\/redhat\/rhel-8-x86_64\/<br \/>\n\u4ec5\u4e0b\u8f7d\u4ee5\u4e0b\u6700\u4f4e\u9650\u5ea6\u7684RPM\u6587\u4ef6<br \/>\npostgresql12-server-12.1-2PGDG.rhel8.x86_64.rpm<br \/>\npostgresql12-12.1-2PGDG.rhel8.x86_64.rpm<br \/>\npostgresql12-libs-12.1-2PGDG.rhel8.x86_64.rpm<\/p>\n<ul class=\"post-ul\">PostgreSQL\u69cb\u7bc9\u5148\u306eRHEL8\u74b0\u5883\u3078\u306e\u8ee2\u9001<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 postgresql]#<\/span> <span class=\"nb\">cd<\/span> \/work\/postgresql\/\r\n<span class=\"gp\">[root@rhel8 postgresql]#<\/span> \r\n<span class=\"gp\">[root@rhel8 postgresql]#<\/span> <span class=\"nb\">ls<\/span> <span class=\"nt\">-ltr<\/span> \r\n<span class=\"go\">\u5408\u8a08 19948\r\n-rw-r--r--. 1 login00 login00 16308316  1\u6708 31 23:33 postgresql12-server-12.1-2PGDG.rhel8.x86_64.rpm\r\n-rw-r--r--. 1 login00 login00  3238556  1\u6708 31 23:34 postgresql12-12.1-2PGDG.rhel8.x86_64.rpm\r\n-rw-r--r--. 1 login00 login00   874940  1\u6708 31 23:35 postgresql12-libs-12.1-2PGDG.rhel8.x86_64.rpm\r\n<\/span><span class=\"gp\">[root@rhel8 postgresql]#<\/span> \r\n<\/code><\/pre>\n<h1>2. \u5b89\u88c5PostgreSQL12\uff08\u89e3\u538bRPM\u6587\u4ef6\uff09<\/h1>\n<ul class=\"post-ul\">\u975e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u74b0\u5883\u3092\u60f3\u5b9a\u3057RPM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 postgresql]#<\/span> rpm <span class=\"nt\">-ivh<\/span> \/work\/postgresql\/<span class=\"k\">*<\/span>\r\n<span class=\"go\">\u8b66\u544a: .\/postgresql12-12.1-2PGDG.rhel8.x86_64.rpm: \u30d8\u30c3\u30c0\u30fc V4 DSA\/SHA1 Signature\u3001\u9375 ID 442df0f8: NOKEY\r\n<\/span><span class=\"gp\">Verifying...                          #<\/span><span class=\"c\">################################ [100%]<\/span>\r\n<span class=\"gp\">\u6e96\u5099\u3057\u3066\u3044\u307e\u3059...              #<\/span><span class=\"c\">################################ [100%]<\/span>\r\n<span class=\"go\">\u66f4\u65b0\u4e2d \/ \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d...\r\n<\/span><span class=\"gp\">   1:postgresql12-libs-12.1-2PGDG.rhel#<\/span><span class=\"c\">################################ [ 33%]<\/span>\r\n<span class=\"gp\">   2:postgresql12-12.1-2PGDG.rhel8    #<\/span><span class=\"c\">################################ [ 67%]<\/span>\r\n<span class=\"gp\">   3:postgresql12-server-12.1-2PGDG.rh#<\/span><span class=\"c\">################################ [100%]<\/span>\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/libstoragemgmt.conf:1] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/lsm \u2192 \/run\/lsm;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/libstoragemgmt.conf:2] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/lsm\/ipc \u2192 \/run\/lsm\/ipc;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/mdadm.conf:1] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/mdadm \u2192 \/run\/mdadm;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/radvd.conf:1] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/radvd \u2192 \/run\/radvd;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/spice-vdagentd.conf:2] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/spice-vdagentd \u2192 \/run\/spice-vdagentd;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[\/usr\/lib\/tmpfiles.d\/subscription-manager.conf:1] Line references path below legacy directory \/var\/run\/, updating \/var\/run\/rhsm \u2192 \/run\/rhsm;<\/span> please update the tmpfiles.d\/ drop-in file accordingly.\r\n<span class=\"gp\">[root@rhel8 postgresql]#<\/span> \r\n<span class=\"gp\">[root@rhel8 postgresql]#<\/span> <span class=\"nb\">echo<\/span> <span class=\"nv\">$?<\/span>\r\n<span class=\"go\">0\r\n<\/span><span class=\"gp\">[root@rhel8 postgresql]#<\/span> \r\n<\/code><\/pre>\n<h1>3. PostgreSQL\u7684\u6700\u521d\u8bbe\u7f6e<\/h1>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 postgresql]#<\/span> \/usr\/pgsql-12\/bin\/postgresql-12-setup initdb\r\n<span class=\"go\">Initializing database ... OK\r\n\r\n<\/span><span class=\"gp\">[root@rhel8 postgresql]#<\/span> \r\n<\/code><\/pre>\n<ul class=\"post-ul\">PostgreSQL\u306e\u8d77\u52d5<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 data]#<\/span> systemctl start postgresql-12.service \r\n<span class=\"gp\">[root@rhel8 data]#<\/span> \r\n<span class=\"gp\">[root@rhel8 data]#<\/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> disabled<span class=\"p\">;<\/span> vendor preset: disabled<span class=\"o\">)<\/span>\r\n<span class=\"gp\">   Active: active (running) since Sat 2020-02-01 00:17:32 EST;<\/span> 51s ago\r\n<span class=\"go\">     Docs: https:\/\/www.postgresql.org\/docs\/12\/static\/\r\n<\/span><span class=\"gp\">  Process: 3513 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: 3518 (postmaster)\r\n    Tasks: 8 (limit: 5064)\r\n   Memory: 17.3M\r\n   CGroup: \/system.slice\/postgresql-12.service\r\n           \u251c\u25003518 \/usr\/pgsql-12\/bin\/postmaster -D \/var\/lib\/pgsql\/12\/data\/\r\n           \u251c\u25003520 postgres: logger   \r\n           \u251c\u25003522 postgres: checkpointer   \r\n           \u251c\u25003523 postgres: background writer   \r\n           \u251c\u25003524 postgres: walwriter   \r\n           \u251c\u25003525 postgres: autovacuum launcher   \r\n           \u251c\u25003526 postgres: stats collector   \r\n           \u2514\u25003527 postgres: logical replication launcher   \r\n\r\n 2\u6708 01 00:17:32 rhel8 systemd[1]: Starting PostgreSQL 12 database server...\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.527 EST [3518] LOG:  PostgreSQL 12.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20190507 (Red Hat 8.3.1-4), 64-bit \u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.530 EST [3518] LOG:  IPv6\u30a2\u30c9\u30ec\u30b9\"::1\"\u3001\u30dd\u30fc\u30c85432\u3067\u5f85\u3061\u53d7\u3051\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.530 EST [3518] LOG:  IPv4\u30a2\u30c9\u30ec\u30b9\"127.0.0.1\"\u3001\u30dd\u30fc\u30c85432\u3067\u5f85\u3061\u53d7\u3051\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.536 EST [3518] LOG:  Unix\u30bd\u30b1\u30c3\u30c8\"\/var\/run\/postgresql\/.s.PGSQL.5432\"\u3067\u5f85\u3061\u53d7\u3051\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.541 EST [3518] LOG:  Unix\u30bd\u30b1\u30c3\u30c8\"\/tmp\/.s.PGSQL.5432\"\u3067\u5f85\u3061\u53d7\u3051\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.559 EST [3518] LOG:  \u30ed\u30b0\u51fa\u529b\u3092\u30ed\u30b0\u53ce\u96c6\u30d7\u30ed\u30bb\u30b9\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3066\u3044\u307e\u3059\r\n 2\u6708 01 00:17:32 rhel8 postmaster[3518]: 2020-02-01 00:17:32.559 EST [3518] \u30d2\u30f3\u30c8:  \u3053\u3053\u304b\u3089\u306e\u30ed\u30b0\u51fa\u529b\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\"log\"\u306b\u73fe\u308c\u307e\u3059\u3002\r\n 2\u6708 01 00:17:32 rhel8 systemd[1]: Started PostgreSQL 12 database server.\r\n\r\n<\/span><span class=\"gp\">[root@rhel8 data]#<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6\u3067\u306ePostgreSQL\u3078\u306e\u63a5\u7d9a<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 data]#<\/span> su - postgres \r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span>  \r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span> psql\r\n<span class=\"go\">psql (12.1)\r\n\"help\"\u3067\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> SELECT now<span class=\"o\">()<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">              now              \r\n-------------------------------\r\n 2020-02-01 00:22:40.184864-05\r\n(1 \u884c)\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">initdb\u306b\u3088\u308a\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u78ba\u8a8d<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">postgres=#<\/span> SELECT oid, datname FROM pg_database<span class=\"p\">;<\/span>\r\n<span class=\"go\">  oid  |  datname  \r\n-------+-----------\r\n 13451 | postgres\r\n     1 | template1\r\n 13450 | template0\r\n(3 \u884c)\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u65b0\u898f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08mydb\uff09\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">postgres=#<\/span> CREATE DATABASE mydb<span class=\"p\">;<\/span>\r\n<span class=\"go\">CREATE DATABASE\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> SELECT oid, datname FROM pg_database<span class=\"p\">;<\/span>\r\n<span class=\"go\">  oid  |  datname  \r\n-------+-----------\r\n 13451 | postgres\r\n 16384 | mydb\r\n     1 | template1\r\n 13450 | template0\r\n(4 \u884c)\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u5916\u90e8\u304b\u3089\u3082\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u70ba\u306e\u8a2d\u5b9a\u5909\u66f4<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[postgres@rhel8 data]$<\/span> vim \/var\/lib\/pgsql\/12\/data\/postgresql.conf\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span>listen_addresses <span class=\"o\">=<\/span> <span class=\"s1\">'localhost'<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"go\">listen_addresses = '*'\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">pg_hba.conf\u306e\u30ed\u30fc\u30ab\u30eb\u63a5\u7d9a\u306e\u8a2d\u5b9a\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e(ident)\u306e\u5834\u5408\u3001localhost\u3092\u6307\u5b9a\u3059\u308b\u3068\u63a5\u7d9a\u3067\u304d\u306a\u3044<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[postgres@rhel8 data]$<\/span> psql <span class=\"nt\">-h<\/span> localhost <span class=\"nt\">-p<\/span> 5432 <span class=\"nt\">-U<\/span> postgres <span class=\"nt\">-d<\/span> mydb\r\n<span class=\"go\">psql: \u30a8\u30e9\u30fc: \u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f: FATAL:  \u30e6\u30fc\u30b6\"postgres\"\u306eIdent\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f\r\n<\/span><span class=\"gp\">[postgres@rhel8 data]$<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">localhost\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u63a5\u7d9a\u3067\u304d\u308b<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[postgres@rhel8 data]$<\/span> psql <span class=\"nt\">-p<\/span> 5432 <span class=\"nt\">-d<\/span> mydb\r\n<span class=\"go\">psql (12.1)\r\n\"help\"\u3067\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002\r\n\r\n<\/span><span class=\"gp\">mydb=#<\/span> \r\n<span class=\"gp\">mydb=#<\/span> <span class=\"se\">\\c<\/span>onninfo\r\n<span class=\"go\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\"mydb\"\u306b\u30e6\u30fc\u30b6\"postgres\"\u3068\u3057\u3066\u3001\"\/var\/run\/postgresql\"\u306e\u30bd\u30b1\u30c3\u30c8\u3092\u4ecb\u3057\u3066\u30dd\u30fc\u30c8\"5432\"\u3067\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059\u3002\r\n<\/span><span class=\"gp\">mydb=#<\/span> \r\n<\/code><\/pre>\n<h1>4. \u521b\u5efa\u65b0\u89d2\u8272\u5e76\u8bbe\u7f6e\u6570\u636e\u5e93\u8fde\u63a5<\/h1>\n<ul class=\"post-ul\">OS\u30e6\u30fc\u30b6\uff08pgadm01\uff09\u306e\u4f5c\u6210&amp;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u8a2d\u5b9a<\/ul>\n<pre class=\"post-pre\"><code>[root@rhel8 data]# useradd pgadm01\r\n[root@rhel8 data]# \r\n[root@rhel8 data]# vim \/home\/pgadm01\/.bash_profile\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"go\">PGDATA=\/var\/lib\/pgsql\/12\/data\r\nexport PGDATA\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u65b0\u898frole\uff08pgadm01\uff09\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">[root@rhel8 data]#<\/span> su - postgres\r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span> \r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span> psql \r\n<span class=\"go\">psql (12.1)\r\n\"help\"\u3067\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> CREATE ROLE pgadm01<span class=\"p\">;<\/span>\r\n<span class=\"go\">CREATE ROLE\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> <span class=\"se\">\\d<\/span>u\r\n<span class=\"go\">                                             \u30ed\u30fc\u30eb\u4e00\u89a7\r\n \u30ed\u30fc\u30eb\u540d |                                   \u5c5e\u6027                                   | \u6240\u5c5e\u30b0\u30eb\u30fc\u30d7 \r\n----------+--------------------------------------------------------------------------+--------------\r\n pgadm01  | \u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u305b\u3093                                                       | {}\r\n postgres | \u30b9\u30fc\u30d1\u30e6\u30fc\u30b6, \u30ed\u30fc\u30eb\u4f5c\u6210\u53ef, DB\u4f5c\u6210\u53ef, \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u53ef, RLS \u306e\u30d0\u30a4\u30d1\u30b9 | {}\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> ALTER ROLE pgadm01 LOGIN<span class=\"p\">;<\/span>\r\n<span class=\"go\">ALTER ROLE\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> <span class=\"se\">\\d<\/span>u\r\n<span class=\"go\">                                             \u30ed\u30fc\u30eb\u4e00\u89a7\r\n \u30ed\u30fc\u30eb\u540d |                                   \u5c5e\u6027                                   | \u6240\u5c5e\u30b0\u30eb\u30fc\u30d7 \r\n----------+--------------------------------------------------------------------------+--------------\r\n pgadm01  |                                                                          | {}\r\n postgres | \u30b9\u30fc\u30d1\u30e6\u30fc\u30b6, \u30ed\u30fc\u30eb\u4f5c\u6210\u53ef, DB\u4f5c\u6210\u53ef, \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u53ef, RLS \u306e\u30d0\u30a4\u30d1\u30b9 | {}\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f7f\u7528createuser\u521b\u5efa\u7528\u6237\uff0c\u5c06\u9ed8\u8ba4\u6388\u4e88\u767b\u5f55\u6743\u9650\uff1b\u4f46\u5982\u679c\u4f7f\u7528create role\u521b\u5efa\u89d2\u8272\uff0c\u5219\u9ed8\u8ba4\u4e0d\u4f1a\u6388\u4e88\u767b\u5f55\u6743\u9650\u3002<\/p>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300cmydb\u300d\u306e\u6240\u6709\u8005\u3092posgres\u304b\u3089pgadm01\u306b\u5909\u66f4<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">postgres=#<\/span> ALTER DATABASE mydb OWNER TO pgadm01<span class=\"p\">;<\/span>\r\n<span class=\"go\">ALTER DATABASE\r\n<\/span><span class=\"gp\">postgres=#<\/span> \r\n<span class=\"gp\">postgres=#<\/span> <span class=\"se\">\\l<\/span>\r\n<span class=\"go\">                                         \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7\r\n   \u540d\u524d    |  \u6240\u6709\u8005  | \u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 |  \u7167\u5408\u9806\u5e8f   | Ctype(\u5909\u63db\u6f14\u7b97\u5b50) |     \u30a2\u30af\u30bb\u30b9\u6a29\u9650      \r\n-----------+----------+------------------+-------------+-------------------+-----------------------\r\n mydb      | pgadm01  | UTF8             | ja_JP.UTF-8 | ja_JP.UTF-8       | \r\n postgres  | postgres | UTF8             | ja_JP.UTF-8 | ja_JP.UTF-8       | \r\n template0 | postgres | UTF8             | ja_JP.UTF-8 | ja_JP.UTF-8       | =c\/postgres          +\r\n           |          |                  |             |                   | postgres=CTc\/postgres\r\n template1 | postgres | UTF8             | ja_JP.UTF-8 | ja_JP.UTF-8       | =c\/postgres          +\r\n           |          |                  |             |                   | postgres=CTc\/postgres\r\n(4 \u884c)\r\n\r\n<\/span><span class=\"gp\">postgres=#<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">pgadm01\u30e6\u30fc\u30b6\u3067mydb\u306b\u63a5\u7d9a<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">postgres=#<\/span> <span class=\"se\">\\q<\/span>\r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span> \r\n<span class=\"gp\">[postgres@rhel8 ~]$<\/span> <span class=\"nb\">exit<\/span>\r\n<span class=\"go\">\u30ed\u30b0\u30a2\u30a6\u30c8\r\n<\/span><span class=\"gp\">[root@rhel8 data]#<\/span> \r\n<span class=\"gp\">[root@rhel8 data]#<\/span> su - pgadm01\r\n<span class=\"gp\">[pgadm01@rhel8 ~]$<\/span> \r\n<span class=\"gp\">[pgadm01@rhel8 ~]$<\/span> psql <span class=\"nt\">-p<\/span> 5432 <span class=\"nt\">-d<\/span> mydb\r\n<span class=\"go\">psql (12.1)\r\n\"help\"\u3067\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<\/code><\/pre>\n<h1>\u521b\u5efa\u6a21\u5f0f\/\u8868<\/h1>\n<ul class=\"post-ul\">\u30b9\u30ad\u30fc\u30de\uff08pgadm01\uff09\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code>mydb=&gt; CREATE SCHEMA pgadm01;\r\nCREATE SCHEMA\r\nmydb=&gt;\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30c6\u30fc\u30d6\u30eb\uff08test\uff09\u306e\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">mydb=&gt;<\/span> CREATE TABLE <span class=\"nb\">test<\/span> <span class=\"o\">(<\/span>\r\n<span class=\"gp\">mydb(&gt;<\/span> name          varchar<span class=\"o\">(<\/span>50<span class=\"o\">)<\/span>,\r\n<span class=\"gp\">mydb(&gt;<\/span> subject       varchar<span class=\"o\">(<\/span>50<span class=\"o\">)<\/span>,\r\n<span class=\"gp\">mydb(&gt;<\/span> score         integer\r\n<span class=\"gp\">mydb(&gt;<\/span> <span class=\"o\">)<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">CREATE TABLE\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<span class=\"gp\">mydb=&gt;<\/span> <span class=\"se\">\\d<\/span>t<span class=\"p\">;<\/span>\r\n<span class=\"go\">           \u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\r\n \u30b9\u30ad\u30fc\u30de | \u540d\u524d |    \u578b    | \u6240\u6709\u8005  \r\n----------+------+----------+---------\r\n pgadm01  | test | \u30c6\u30fc\u30d6\u30eb | pgadm01\r\n(1 \u884c)\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span>\r\n<\/code><\/pre>\n<h1>\u6267\u884c\u8868\u683c\u6570\u636e\u64cd\u4f5c\uff08\u63d2\u5165\/\u9009\u62e9\/\u66f4\u65b0\/\u5220\u9664\uff09<\/h1>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u306e\u633f\u5165\uff08INSERT\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">mydb=&gt;<\/span> INSERT INTO <span class=\"nb\">test<\/span> <span class=\"o\">(<\/span>name, subject, score<span class=\"o\">)<\/span> VALUES <span class=\"o\">(<\/span><span class=\"s1\">'student1'<\/span>, <span class=\"s1\">'math'<\/span>, 80<span class=\"o\">)<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">INSERT 0 1\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<span class=\"gp\">mydb=&gt;<\/span> SELECT <span class=\"k\">*<\/span> FROM <span class=\"nb\">test<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">   name   | subject | score \r\n----------+---------+-------\r\n student1 | math    |    80\r\n(1 \u884c)\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u306e\u9078\u629e\uff08SELECT\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">mydb=&gt;<\/span> SELECT name, subject, score FROM <span class=\"nb\">test <\/span>WHERE name <span class=\"o\">=<\/span> <span class=\"s1\">'student1'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">   name   | subject | score \r\n----------+---------+-------\r\n student1 | math    |    80\r\n(1 \u884c)\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u306e\u66f4\u65b0\uff08UPDATE\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">mydb=&gt;<\/span> UPDATE <span class=\"nb\">test <\/span>SET score <span class=\"o\">=<\/span> 95 WHERE name <span class=\"o\">=<\/span> <span class=\"s1\">'student1'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">UPDATE 1\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<span class=\"gp\">mydb=&gt;<\/span> SELECT <span class=\"k\">*<\/span> FROM <span class=\"nb\">test<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">   name   | subject | score \r\n----------+---------+-------\r\n student1 | math    |    95\r\n(1 \u884c)\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u306e\u524a\u9664\uff08DELETE\uff09<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">mydb=&gt;<\/span> DELETE FROM <span class=\"nb\">test <\/span>WHERE name <span class=\"o\">=<\/span> <span class=\"s1\">'student1'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\">DELETE 1\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span> \r\n<span class=\"gp\">mydb=&gt;<\/span> SELECT <span class=\"k\">*<\/span> FROM <span class=\"nb\">test<\/span><span class=\"p\">;<\/span>\r\n<span class=\"go\"> name | subject | score \r\n------+---------+-------\r\n(0 \u884c)\r\n\r\n<\/span><span class=\"gp\">mydb=&gt;<\/span>\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5RPM\u5305\u5e76\u5728RHEL8\u73af\u5883\u4e0b\u90e8\u7f72PostgreSQL12\uff0c\u5e76\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u8bb0\u5f55\u5185\u5bb9 \u4ee5\u4e0b\u662f\u7528\u4e2d\u6587 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42019","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>\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1 - 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\/\u5728rhel8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684postgresql12\u64cd\u4f5c\u9a8c\u8bc1\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1\" \/>\n<meta property=\"og:description\" content=\"\u5b89\u88c5RPM\u5305\u5e76\u5728RHEL8\u73af\u5883\u4e0b\u90e8\u7f72PostgreSQL12\uff0c\u5e76\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u8bb0\u5f55\u5185\u5bb9 \u4ee5\u4e0b\u662f\u7528\u4e2d\u6587 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728rhel8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684postgresql12\u64cd\u4f5c\u9a8c\u8bc1\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T14:07:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T17:10:43+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \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%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/\",\"name\":\"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-10T14:07:40+00:00\",\"dateModified\":\"2024-04-28T17:10:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1\"}]},{\"@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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1 - 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\/\u5728rhel8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684postgresql12\u64cd\u4f5c\u9a8c\u8bc1\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1","og_description":"\u5b89\u88c5RPM\u5305\u5e76\u5728RHEL8\u73af\u5883\u4e0b\u90e8\u7f72PostgreSQL12\uff0c\u5e76\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u64cd\u4f5c\u9a8c\u8bc1\u3002 \u8bb0\u5f55\u5185\u5bb9 \u4ee5\u4e0b\u662f\u7528\u4e2d\u6587 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728rhel8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684postgresql12\u64cd\u4f5c\u9a8c\u8bc1\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-10T14:07:40+00:00","article_modified_time":"2024-04-28T17:10:43+00:00","author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/","name":"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-10T14:07:40+00:00","dateModified":"2024-04-28T17:10:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728RHEL8\u73af\u5883\u4e2d\u5b89\u88c5\u5e76\u8fdb\u884c\u7b80\u5355\u7684PostgreSQL12\u64cd\u4f5c\u9a8c\u8bc1"}]},{"@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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel8%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%9b%e8%a1%8c%e7%ae%80%e5%8d%95%e7%9a%84postgresql12%e6%93%8d%e4%bd%9c%e9%aa%8c%e8%af%81%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\/42019","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42019"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42019\/revisions"}],"predecessor-version":[{"id":70700,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42019\/revisions\/70700"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}