{"id":10248,"date":"2023-04-19T06:33:21","date_gmt":"2023-04-18T21:33:21","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=10248"},"modified":"2023-05-09T08:31:52","modified_gmt":"2023-05-08T23:31:52","slug":"postgresql%e3%81%ae%e8%b5%b7%e5%8b%95%e3%81%a8%e5%81%9c%e6%ad%a2%e3%82%92%e8%a1%8c%e3%81%86%ef%bc%81%ef%bc%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/10248","title":{"rendered":"PostgreSQL\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092\u884c\u3046\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u3067\u7a3c\u50cd\u3059\u308bPostgreSQL\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>PostgreSQL\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>PosgtreSQL\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl status postgresql\r\n\u25cf postgresql.service - PostgreSQL database server\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql.service; enabled; vendor preset: disabled)\r\n     Active: active (running) since Wed 2023-04-19 06:20:04 JST; 5min ago\r\n    Process: 2710 ExecStartPre=\/usr\/libexec\/postgresql-check-db-dir postgresql (code=exited, status=0\/SUCCESS)\r\n   Main PID: 2713 (postmaster)\r\n      Tasks: 8 (limit: 11062)\r\n     Memory: 17.0M\r\n        CPU: 100ms\r\n     CGroup: \/system.slice\/postgresql.service\r\n             \u251c\u25002713 \/usr\/bin\/postmaster -D \/var\/lib\/pgsql\/data\r\n             \u251c\u25002714 &quot;postgres: logger &quot;\r\n             \u251c\u25002716 &quot;postgres: checkpointer &quot;\r\n             \u251c\u25002717 &quot;postgres: background writer &quot;\r\n             \u251c\u25002718 &quot;postgres: walwriter &quot;\r\n             \u251c\u25002719 &quot;postgres: autovacuum launcher &quot;\r\n             \u251c\u25002720 &quot;postgres: stats collector &quot;\r\n             \u2514\u25002721 &quot;postgres: logical replication launcher &quot;\r\n<\/pre>\n<h2>PostgreSQL\u3092\u505c\u6b62\u3059\u308b\uff01<\/h2>\n<p>PosgtreSQL\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n# systemctl stop postgresql\r\n# systemctl status postgresql\r\n\u25cb postgresql.service - PostgreSQL database server\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql.service; enabled; vendor preset: disabled)\r\n     Active: inactive (dead) since Wed 2023-04-19 06:29:05 JST; 2s ago\r\n   Duration: 9min 1.227s\r\n    Process: 2710 ExecStartPre=\/usr\/libexec\/postgresql-check-db-dir postgresql (code=exited, status=0\/SUCCESS)\r\n    Process: 2713 ExecStart=\/usr\/bin\/postmaster -D ${PGDATA} (code=exited, status=0\/SUCCESS)\r\n   Main PID: 2713 (code=exited, status=0\/SUCCESS)\r\n        CPU: 139ms\r\n<\/pre>\n<h2>PostgreSQL\u3092\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>PosgtreSQL\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n# systemctl start postgresql\r\n# systemctl status postgresql\r\n\u25cf postgresql.service - PostgreSQL database server\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql.service; enabled; vendor preset: disabled)\r\n     Active: active (running) since Wed 2023-04-19 06:30:13 JST; 1s ago\r\n    Process: 2808 ExecStartPre=\/usr\/libexec\/postgresql-check-db-dir postgresql (code=exited, status=0\/SUCCESS)\r\n   Main PID: 2810 (postmaster)\r\n      Tasks: 8 (limit: 11062)\r\n     Memory: 16.9M\r\n        CPU: 42ms\r\n     CGroup: \/system.slice\/postgresql.service\r\n             \u251c\u25002810 \/usr\/bin\/postmaster -D \/var\/lib\/pgsql\/data\r\n             \u251c\u25002811 &quot;postgres: logger &quot;\r\n             \u251c\u25002813 &quot;postgres: checkpointer &quot;\r\n             \u251c\u25002814 &quot;postgres: background writer &quot;\r\n             \u251c\u25002815 &quot;postgres: walwriter &quot;\r\n             \u251c\u25002816 &quot;postgres: autovacuum launcher &quot;\r\n             \u251c\u25002817 &quot;postgres: stats collector &quot;\r\n             \u2514\u25002818 &quot;postgres: logical replication launcher &quot;\r\n<\/pre>\n<h2>PostgreSQL\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>PosgtreSQL\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n# systemctl restart postgresql\r\n# systemctl status postgresql\r\n\u25cf postgresql.service - PostgreSQL database server\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql.service; enabled; vendor preset: disabled)\r\n     Active: active (running) since Wed 2023-04-19 06:31:33 JST; 1s ago\r\n    Process: 2823 ExecStartPre=\/usr\/libexec\/postgresql-check-db-dir postgresql (code=exited, status=0\/SUCCESS)\r\n   Main PID: 2825 (postmaster)\r\n      Tasks: 8 (limit: 11062)\r\n     Memory: 16.9M\r\n        CPU: 48ms\r\n     CGroup: \/system.slice\/postgresql.service\r\n             \u251c\u25002825 \/usr\/bin\/postmaster -D \/var\/lib\/pgsql\/data\r\n             \u251c\u25002826 &quot;postgres: logger &quot;\r\n             \u251c\u25002829 &quot;postgres: checkpointer &quot;\r\n             \u251c\u25002830 &quot;postgres: background writer &quot;\r\n             \u251c\u25002831 &quot;postgres: walwriter &quot;\r\n             \u251c\u25002832 &quot;postgres: autovacuum launcher &quot;\r\n             \u251c\u25002833 &quot;postgres: stats collector &quot;\r\n             \u2514\u25002834 &quot;postgres: logical replication launcher &quot;\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Rocky Linux 9\u3067\u7a3c\u50cd\u3059\u308bPostgreSQL\u306e\u8d77\u52d5\u3068\u505c\u6b62\u306f\u3001Systemd\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.postgresql.org\/\" target=\"_blank\" rel=\"noopener\">PostgreSQL: The World's Most Advanced Open Source Relational Database<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/10238\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011PostgreSQL\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/05\/eyecatch_postgresql_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011PostgreSQL\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">PostgreSQL\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u53c2\u8003\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B0BLY4SPC4&linkId=74585e7caebda2fa1613b0bd5bafb3cf\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u3067\u7a3c\u50cd\u3059\u308bPostgreSQL\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":11332,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221],"tags":[],"class_list":["post-10248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-postgresql"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=10248"}],"version-history":[{"count":6,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10248\/revisions"}],"predecessor-version":[{"id":10257,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10248\/revisions\/10257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/11332"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=10248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=10248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=10248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}