{"id":41301,"date":"2023-01-24T15:30:21","date_gmt":"2023-01-24T06:30:21","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=41301&#038;preview=true&#038;preview_id=41301"},"modified":"2023-08-26T00:12:05","modified_gmt":"2023-08-25T15:12:05","slug":"postgresql-replication","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/","title":{"rendered":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09"},"content":{"rendered":"<p>\u30b5\u30a4\u30c8\u306e\u6240\u6709\u8005\u3067\u3042\u308c\u3070\u8ab0\u3067\u3082\u8eab\u306b\u899a\u3048\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30c7\u30fc\u30bf\u306e\u640d\u5931\u3084\u30c0\u30a6\u30f3\u306f\u3001\u305f\u3068\u3048\u305d\u308c\u304c\u5c11\u91cf\u3067\u3042\u3063\u3066\u3082\u3001\u58ca\u6ec5\u7684\u306a\u6253\u6483\u3092\u3082\u305f\u3089\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306e\u767a\u751f\u306f\u662f\u975e\u3068\u3082\u907f\u3051\u305f\u3044\u3068\u3053\u308d\u3002\u6700\u7d42\u7684\u306b\u306f\u3001\u751f\u7523\u6027\u3001\u53ef\u7528\u6027\u304c\u4f4e\u4e0b\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u88fd\u54c1\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u30a4\u30e1\u30fc\u30b8\u30c0\u30a6\u30f3\u3082\u61f8\u5ff5\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u306e\u5b8c\u5168\u6027\u3092\u5b88\u308b\u3079\u304f\u3001\u30c0\u30a6\u30f3\u3084\u30c7\u30fc\u30bf\u640d\u5931\u306e\u53ef\u80fd\u6027\u3092\u5e38\u306b\u8003\u3048\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u767b\u5834\u3059\u308b\u306e\u304c\u3001\u30c7\u30fc\u30bf\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<br \/>\n<br \/>\n\u30c7\u30fc\u30bf\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u8a00\u3046\u306a\u308c\u3070\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u81ea\u52d5\u5316\u3067\u3001\u30c7\u30fc\u30bf\u3092\u30e1\u30a4\u30f3\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5225\u306e\u9060\u9694\u5730\u306b\u3042\u308b\u5b89\u5168\u306a\u5834\u6240\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-database\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/a>\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u306b\u306f\u6b20\u304b\u305b\u306a\u3044\u6280\u8853\u3067\u3059\u3002\u307e\u305f\u3001\u8907\u88fd\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6d3b\u7528\u3057\u3066\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306eSQL\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5185\u3067\u3088\u308a\u591a\u304f\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>2\u3064\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9593\u3067\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u304c\u4e0d\u6e2c\u306e\u4e8b\u614b\u306b\u5bfe\u3059\u308b\u30d5\u30a9\u30fc\u30eb\u30c8\u30c8\u30ec\u30e9\u30f3\u30b9\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u707d\u5bb3\u6642\u306e\u9ad8\u53ef\u7528\u6027\u3092\u78ba\u4fdd\u3059\u308b\u512a\u308c\u305f\u65b9\u7b56\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/backend-developer\/\">\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a<\/a>\u8005\u304cPostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u884c\u3046\u305f\u3081\u306b\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u3001\u3055\u307e\u3056\u307e\u306a\u5074\u9762\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc><\/p>\n<h2>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f<\/h2>\n<figure id=\"attachment_128034\" aria-describedby=\"caption-attachment-128034\" style=\"width: 945px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-128034\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/07\/PostgreSQL-Replication-Illustration.png\" alt=\"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a4\u30e1\u30fc\u30b8\u56f3\" width=\"945\" height=\"310\"><figcaption id=\"caption-attachment-128034\" class=\"wp-caption-text\">PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a4\u30e1\u30fc\u30b8\u56f3\uff08\u51fa\u5178\uff1a<a href=\"https:\/\/www.enterprisedb.com\/postgres-tutorials\/postgresql-replication-and-automatic-failover-tutorial#continuous-wal\">EnterpriseDB<\/a>\uff09<\/figcaption><\/figure>\n<p>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-postgresql\/\">PostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/a>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30b3\u30d4\u30fc\u5143\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306f\u300c\u30d7\u30e9\u30a4\u30de\u30ea\u300d\u30b5\u30fc\u30d0\u30fc\u3068\u3082\u547c\u3070\u308c\u3001\u30b3\u30d4\u30fc\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306f\u300c\u30ec\u30d7\u30ea\u30ab\u300d\u30b5\u30fc\u30d0\u30fc\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u304a\u3051\u308b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e2\u30c7\u30eb\u306f\u3069\u3061\u3089\u304b\u3068\u8a00\u3048\u3070\u5358\u7d14\u3067\u3059\u3002\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u304c\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u3001\u5909\u66f4\u70b9\u304c\u9069\u7528\u3055\u308c\u3001\u305d\u306e\u5f8c\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u306b\u9001\u3089\u308c\u307e\u3059\u3002<\/p>\n<h3>\u81ea\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3068\u306f<\/h3>\n<p>\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3068\u306f\u3001<a href=\"https:\/\/www.enterprisedb.com\/postgres-tutorials\/postgresql-replication-and-automatic-failover-tutorial\">\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u304c\u4f55\u3089\u304b\u306e\u7406\u7531\u3067\u505c\u6b62\u3057\u305f\u5834\u5408\u306b\u30c7\u30fc\u30bf\u3092\u5fa9\u65e7<\/a>\u3059\u308b\u7b56\u3067\u3059\u3002\u7269\u7406\u7684\u306a\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092PostreSQL\u3067\u7ba1\u7406\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u4e0d\u5177\u5408\u306b\u3088\u308b\u30c0\u30a6\u30f3\u306b\u5099\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u958b\u59cb\u307e\u3067\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002PostgreSQL\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u969c\u5bb3\u3092\u76e3\u8996\u3057\u7bc4\u56f2\u6307\u5b9a\u3059\u308b\u6a5f\u80fd\u304c\u6a19\u6e96\u3067\u642d\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u3068\u306f\u8a00\u3048\u3001\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u306e\u5b9f\u884c\u3092PostgreSQL\u306b\u4f9d\u5b58\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u81ea\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3001\u307e\u305f\u306f\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u3078\u306e\u81ea\u52d5\u5207\u308a\u66ff\u3048\u3092\u53ef\u80fd\u306b\u3059\u308b\u5c02\u7528\u30c4\u30fc\u30eb\u304c\u3042\u308a\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-repair-database\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c0\u30a6\u30f3<\/a>\u306b\u5099\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u304c\u505c\u6b62\u3057\u305f\u5834\u5408\u3067\u3042\u3063\u3066\u3082\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u9ad8\u53ef\u7528\u6027\u304c\u307b\u307c\u4fdd\u8a3c\u3055\u308c\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<h2>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5229\u70b9<\/h2>\n<p>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u4e3b\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u79fb\u884c<\/strong>\uff1aPostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u5909\u66f4\u3001\u307e\u305f\u306f\u30b7\u30b9\u30c6\u30e0\u5c55\u958b\u306b\u3088\u308b\u30c7\u30fc\u30bf\u79fb\u884c\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30d5\u30a9\u30fc\u30eb\u30c8\u30c8\u30ec\u30e9\u30f3\u30b9<\/strong>\uff1a\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u3066\u3082\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306e\u683c\u7d0d\u30c7\u30fc\u30bf\u304c\u540c\u3058\u3067\u3042\u308b\u305f\u3081\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u30e1\u30a4\u30f3\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30aa\u30f3\u30e9\u30a4\u30f3\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\uff08OLTP\uff09\u6027\u80fd<\/strong>\uff1a\u30ec\u30dd\u30fc\u30c8\u30af\u30a8\u30ea\u306e\u8ca0\u8377\u3092\u53d6\u308a\u9664\u304f\u3053\u3068\u3067\u3001OLTP\u30b7\u30b9\u30c6\u30e0\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u6642\u9593\u3068\u30af\u30a8\u30ea\u6642\u9593\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u6642\u9593\u3068\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u7d42\u4e86\u3059\u308b\u307e\u3067\u306b\u3001\u6240\u5b9a\u306e\u30af\u30a8\u30ea\u5b9f\u884c\u306b\u304b\u304b\u308b\u6642\u9593\u306e\u3053\u3068\u3067\u3059\u3002<\/li>\n<li><strong>\u30b7\u30b9\u30c6\u30e0\u30c6\u30b9\u30c8\u306e\u4e26\u884c\u5b9f\u65bd<\/strong>\uff1a\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u969b\u306b\u306f\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u3067\u30b7\u30b9\u30c6\u30e0\u304c\u3046\u307e\u304f\u52d5\u4f5c\u3059\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5c0e\u5165\u524d\u306b\u672c\u756a\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b3\u30d4\u30fc\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>\u4e00\u822c\u7684\u306b\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u6271\u3046\u969b\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/backup-wordpress-site\/\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/a>\u3059\u308b\u65b9\u6cd5\u306f1\u3064\u3057\u304b\u306a\u3044\u3068\u601d\u308f\u308c\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057\u3001PostgreSQL\u3067\u306f\u3001<a href=\"https:\/\/www.citusdata.com\/blog\/2018\/02\/21\/three-approaches-to-postgresql-replication\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4ee5\u4e0b\u306e3\u3064\u306e\u65b9\u6cd5\u306e\u3044\u305a\u308c<\/a>\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/strong>\uff1a\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304b\u3089\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u3078\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u3057\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066Amazon S3\u307e\u305f\u306fAzure Blob\u3078\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/li>\n<li><strong>\u30dc\u30ea\u30e5\u30fc\u30e0\u30ec\u30d9\u30eb\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/strong>\uff1a\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304b\u3089\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u3078\u30b9\u30c8\u30ec\u30fc\u30b8\u5c64\u3067\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u3057\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066Amazon S3\u307e\u305f\u306fAzure Blob\u306b\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/li>\n<li><strong>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30bf\u30eb\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong>\uff1a\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u3057\u306a\u304c\u3089\u3001Amazon S3\u307e\u305f\u306fAzure Blob\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u65b0\u3057\u3044\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u3092\u69cb\u7bc9\u3057\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304b\u3089\u76f4\u63a5\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<\/ol>\n<h3>\u65b9\u6cd51. \u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0<\/h3>\n<p>PostgreSQL\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fWAL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3082\u77e5\u3089\u308c\u3066\u304a\u308a\u3001\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u306bPostgreSQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30bf\u30fc\u30b2\u30c3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306bWAL\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u2500\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u69cb\u6210\u3092\u7528\u3044\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u305d\u306e\u3059\u3079\u3066\u306e\u64cd\u4f5c\u3092\u51e6\u7406\u3059\u308b\u30d7\u30e9\u30a4\u30de\u30ea\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3059\u3002\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u88dc\u52a9\u7684\u306a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u52a0\u3048\u3089\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u81ea\u5206\u81ea\u8eab\u3067\u5b9f\u884c\u3057\u3001\u305d\u306e\u904e\u7a0b\u3067\u540c\u4e00\u306e\u30b3\u30d4\u30fc\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u306a\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u5358\u306b\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u3092\u63a1\u7528\u3059\u308b\u306b\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3068\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u306e\u4e21\u65b9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30ce\u30fc\u30c9\u3092\u7c21\u5358\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a<\/h4>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u306e\u305f\u3081\u306e\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<h5>\u30b9\u30c6\u30c3\u30d71. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u521d\u671f\u5316<\/h5>\n<p><a href=\"https:\/\/hevodata.com\/learn\/postgresql-streaming-replication\/#master1\" target=\"_blank\" rel=\"noopener noreferrer\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u521d\u671f\u5316<\/a>\u3059\u308b\u306b\u306f\u3001<code>initdb<\/code>\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">CREATE USER 'example_username' REPLICATION LOGIN ENCRYPTED PASSWORD 'example_password';<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u30af\u30a8\u30ea\u306b\u5bfe\u3059\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u30e6\u30fc\u30b6\u30fc\u540d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u5fc5\u8981\u306a\u6a29\u9650\u3092\u4e0e\u3048\u308b\u306e\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u30af\u30a8\u30ea\u306e\u4f8b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">CREATE USER 'rep_username' REPLICATION LOGIN ENCRYPTED PASSWORD 'rep_password';<\/code><\/pre>\n<h5>\u30b9\u30c6\u30c3\u30d72. \u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8a2d\u5b9a<\/h5>\n<p>\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bPostgreSQL\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08<strong>postgresql.conf<\/strong>\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"bash\">wal_level = logical\nwal_log_hints = on\nmax_wal_senders = 8\nmax_wal_size = 1GB\nhot_standby = on<\/code><\/pre>\n<p>\u3053\u3053\u3067\u3001\u5148\u307b\u3069\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u4f7f\u7528\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u80cc\u666f\u3092\u5c11\u3057\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong><code>wal_log_hints<\/code>\uff1a<\/strong>\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u304c\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u671f\u3057\u3066\u3044\u306a\u3044\u3068\u304d\u306b\u4fbf\u5229\u306a<code>pg_rewind<\/code>\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u306e\u306b\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<li><strong><code>wal_level<\/code>\uff1a<\/strong>\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001PostgreSQL\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f7f\u7528\u3067\u304d\u308b\u5024\u306f\u3001<code>minimal<\/code> \u3001<code>replica<\/code>\u3001\u307e\u305f\u306f<code>logical<\/code>\u3067\u3059\u3002<\/li>\n<li><strong><code>max_wal_size<\/code>\uff1a<\/strong>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u6301\u3067\u304d\u308bWAL\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><strong><code>hot_standby<\/code>\uff1a<\/strong>\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092ON\u306b\u8a2d\u5b9a\u3057\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u3068\u306e\u30ea\u30fc\u30c9\u30aa\u30f3\u63a5\u7d9a\u3092\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong><code>max_wal_senders<\/code>\uff1a<\/strong>\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u9593\u3067\u78ba\u7acb\u3067\u304d\u308b\u6700\u5927\u540c\u6642\u63a5\u7d9a\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h5>\u30b9\u30c6\u30c3\u30d73. \u65b0\u898f\u30a8\u30f3\u30c8\u30ea\u30fc\u306e\u4f5c\u6210<\/h5>\n<p><strong>postgresql.conf<\/strong>\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u5909\u66f4\u5f8c\u3001<strong>pg_hba.conf<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u65b0\u3057\u3044\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a8\u30f3\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u9593\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\u3001PostgreSQL\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">host replication rep_user IPaddress md5<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u304c<code>rep_user<\/code> \u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u306b\u63a5\u7d9a\u3092\u8a31\u53ef\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f IP\u3092\u4f7f\u3063\u3066\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">host replication rep_user 192.168.0.22\/32 md5<\/code><\/pre>\n<h4>\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a<\/h4>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h5>\u30b9\u30c6\u30c3\u30d71. \u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h5>\n<p>\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001<code>pg_basebackup<\/code>\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u306e\u51fa\u767a\u70b9\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">pg_basebackp -D  -h  -X stream -c fast -U rep_user -W<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u69cb\u6587\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong><code>-h<\/code>\uff1a<\/strong>\u30d7\u30e9\u30a4\u30de\u30ea\u30db\u30b9\u30c8\u306b\u3064\u3044\u3066\u8a00\u53ca<\/li>\n<li><strong><code>-D<\/code>\uff1a<\/strong>\u73fe\u5728\u4f5c\u696d\u4e2d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u793a\u3059<\/li>\n<li><strong><code>-C<\/code>\uff1a<\/strong>\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u8a2d\u5b9a\u306b\u5229\u7528<\/li>\n<li><strong><code>-X<\/code>\uff1a<\/strong>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3081\u308b\u306e\u306b\u4f7f\u7528<\/li>\n<li><strong><code>-W<\/code>\uff1a<\/strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u524d\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u3092\u6c42\u3081\u308b<\/li>\n<\/ul>\n<h5>\u30b9\u30c6\u30c3\u30d72. \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h5>\n<p>\u6b21\u306b\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001<strong>recovery.conf<\/strong>\u3068\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306fPostgreSQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<code>pg_basebackup<\/code>\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306e<code>-R<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u81ea\u52d5\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>recovery.conf<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"bash\">standby_mode = 'on'\n\nprimary_conninfo = 'host=&lt;master_host&gt; port=&lt;postgres_port&gt; user=&lt;replication_user&gt; password=&lt;password&gt; application_name=\"host_name\"'\n\nrecovery_target_timeline = 'latest'<\/code><\/pre>\n<p>\u524d\u8ff0\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong><code>primary_conninfo<\/code>\uff1a<\/strong>\u6587\u5b57\u5217\u3092\u5229\u7528\u3057\u3066\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u9593\u306e\u63a5\u7d9a\u3092\u884c\u3046<\/li>\n<li><strong><code>standby_mode<\/code>\uff1a<\/strong>\u30b9\u30a4\u30c3\u30c1ON\u306e\u6642\u306b\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u3092\u30b9\u30bf\u30f3\u30d0\u30a4\u3068\u3057\u3066\u8d77\u52d5<\/li>\n<li><strong><code>recovery_target_timeline<\/code>\uff1a<\/strong>\u30ea\u30ab\u30d0\u30ea\u30bf\u30a4\u30e0\u3092\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>\u63a5\u7d9a\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001primary_conninfo\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3068\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001IP \u30a2\u30c9\u30ec\u30b9\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">primary_conninfo = 'host=192.168.0.26 port=5432 user=rep_user password=rep_pass'<\/code><\/pre>\n<h5>\u30b9\u30c6\u30c3\u30d73. \u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u518d\u8d77\u52d5<\/h5>\n<p>\u6700\u5f8c\u306b\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u3001\u8a2d\u5b9a\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u8ab2\u984c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u69d8\u3005\u306aPostgreSQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08\u5225\u3005\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\uff09\u304c1\u3064\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u5229\u7528\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u540c\u3058DNS\u307e\u305f\u306fIP\u540d\u3092\u518d\u8a66\u884c\u3057\u7d9a\u3051\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3066\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/li>\n<li>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3068\u76e3\u8996\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3002\u5225\u9014\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u3092\u65b0\u3057\u3044\u30d7\u30e9\u30a4\u30de\u30ea\u306b\u6607\u683c\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3053\u306e\u6607\u683c\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c1\u3064\u306e\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3060\u3051\u306b\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3044\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>PostgreSQL\u306f\u72b6\u614b\u5168\u4f53\u3092\u30ec\u30d7\u30ea\u30b1\u30fc\u30c8\u3059\u308b\u3002\u65b0\u3057\u3044\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u3092\u958b\u767a\u3059\u308b\u969b\u306b\u306f\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u304c\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304b\u3089\u5909\u66f4\u70b9\u306e\u5c65\u6b74\u3092\u3059\u3079\u3066\u518d\u73fe\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u3053\u308c\u306f\u30ea\u30bd\u30fc\u30b9\u96c6\u7d04\u7684\u3067\u3001\u30d8\u30c3\u30c9\u5185\u306e\u30ce\u30fc\u30c9\u3092\u6392\u9664\u3057\u3066\u65b0\u3057\u3044\u30ce\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306e\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u3064\u304f\u3002<\/li>\n<\/ul>\n<h3>\u65b9\u6cd52. \u8907\u88fd\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9<\/h3>\n<p>\u8907\u88fd\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u30c7\u30a3\u30b9\u30af\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\uff08\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3082\u547c\u3070\u308c\u308b\uff09\u306b\u57fa\u3065\u304f\u624b\u6cd5\u3067\u3059\u3002\u5909\u66f4\u5185\u5bb9\u304c\u6c38\u7d9a\u30dc\u30ea\u30e5\u30fc\u30e0\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3001\u305d\u308c\u304c\u5225\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u306b\u540c\u671f\u7684\u306b\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u306e\u5f37\u307f\u3068\u3057\u3066\u3001PostgreSQL\u3001MySQL\u3001<a href=\"https:\/\/kinsta.com\/blog\/postgresql-vs-sql-server\/\">SQL Server<\/a>\u306a\u3069\u3001\u3059\u3079\u3066\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30af\u30e9\u30a6\u30c9\u74b0\u5883\u3067\u306e\u4e92\u63db\u6027\u3068\u30c7\u30fc\u30bf\u306e\u8010\u4e45\u6027\u304c\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u30c7\u30a3\u30b9\u30af\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3067\u306f\u3001WAL\u30ed\u30b0\u3068\u30c6\u30fc\u30d6\u30eb\u30c7\u30fc\u30bf\u306e\u4e21\u65b9\u3092\u30ec\u30d7\u30ea\u30b1\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u66f8\u304d\u8fbc\u307f\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u540c\u671f\u7684\u306b\u884c\u308f\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u30011\u30d0\u30a4\u30c8\u3067\u3082\u5931\u308f\u308c\u308b\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u7834\u640d\u3057\u305f\u72b6\u614b\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u901a\u5e38\u3001Azure PostgreSQL\u3068Amazon RDS\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u65b9\u6cd53. WAL<\/h3>\n<p>WAL\u306f\u30bb\u30b0\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f16MB\uff09\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5404\u30bb\u30b0\u30e1\u30f3\u30c8\u306b\u306f1\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002WAL\u5185\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8b58\u5225\u3059\u308bLSN\uff08\u30ed\u30b0\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\uff09\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u4f4d\u7f6e\/\u5834\u6240\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306f\u3001WAL\u30bb\u30b0\u30e1\u30f3\u30c8\uff08PostgreSQL\u7528\u8a9e\u3067\u306fXLOGS\u3068\u3082\u547c\u3070\u308c\u307e\u3059\uff09\u3092\u5229\u7528\u3057\u3066\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u5909\u66f4\u3092\u7d99\u7d9a\u7684\u306b\u8907\u88fd\u3057\u307e\u3059\u3002WAL\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d0\u30a4\u30c8\u914d\u5217\u306e\u30c7\u30fc\u30bf\u30c1\u30e3\u30f3\u30af\uff08\u305d\u308c\u305e\u308c\u304c\u4e00\u610f\u306eLSN\u3092\u6301\u3064\uff09\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u9069\u7528\u524d\u306b\u5b89\u5b9a\u3057\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001DBMS\u306b\u8010\u4e45\u6027\u3068\u539f\u5b50\u6027\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u5909\u66f4\u306e\u9069\u7528\u306f\u3001\u69d8\u3005\u306a\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u64cd\u4f5c\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u8003\u3048\u308b\u3079\u304d\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u7de8\u96c6\u4e2d\u306b\u505c\u96fb\u306a\u3069\u3067\u30b5\u30fc\u30d0\u30fc\u304c\u6545\u969c\u3057\u305f\u5834\u5408\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u539f\u5b50\u6027\u3092\u4fdd\u8a3c\u3067\u304d\u308b\u306e\u304b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8d77\u52d5\u306b\u969b\u3057\u3001\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u307e\u305f\u306f\u518d\u751f\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u59cb\u3055\u308c\u3001\u5229\u7528\u53ef\u80fd\u306aWAL\u30bb\u30b0\u30e1\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u3001\u5404\u30c7\u30fc\u30bf\u30da\u30fc\u30b8\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308bLSN\u3068\u6bd4\u8f03\u3057\u307e\u3059\uff08\u5404\u30c7\u30fc\u30bf\u30da\u30fc\u30b8\u306b\u306f\u3001\u305d\u306e\u30da\u30fc\u30b8\u306b\u5f71\u97ff\u3059\u308b\u6700\u65b0\u306eWAL\u30ec\u30b3\u30fc\u30c9\u306eLSN\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<h4>\u30ed\u30b0\u914d\u5e03\u30d9\u30fc\u30b9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30d6\u30ed\u30c3\u30af\u30ec\u30d9\u30eb\uff09<\/h4>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30ed\u30b0\u914d\u5e03\u3092\u6539\u826f\u3057\u305f\u3082\u306e\u3067\u3059\u3002WAL\u306e\u5207\u308a\u66ff\u3048\u3092\u5f85\u3064\u306e\u3068\u306f\u5bfe\u7167\u7684\u306b\u3001\u30ec\u30b3\u30fc\u30c9\u304c\u4f5c\u6210\u3055\u308c\u308b\u3068\u540c\u6642\u306b\u9001\u4fe1\u3055\u308c\u308b\u305f\u3081\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9045\u5ef6\u304c\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5229\u7528\u3057\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30ea\u30f3\u30af\u3057\u3066\u3044\u308b\u70b9\u3067\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30ed\u30b0\u914d\u5e03\u306b\u52dd\u308a\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u304c\u63d0\u4f9b\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u4f9d\u5b58\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u3053\u306e\u63a5\u7d9a\u3092\u4ecb\u3057\u3066\u76f4\u63a5WAL\u30ec\u30b3\u30fc\u30c9\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30ed\u30b0\u914d\u5e03\u30d9\u30fc\u30b9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30d5\u30a1\u30a4\u30eb\u30ec\u30d9\u30eb\uff09<\/h4>\n<p>\u30ed\u30b0\u914d\u5e03\u3068\u306f\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u306ePostgreSQL\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u3001WAL\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u751f\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5225\u306e\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u30ea\u30ab\u30d0\u30ea\u30e2\u30fc\u30c9\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u552f\u4e00\u306e\u76ee\u7684\u306f\u65b0\u3057\u3044WAL\u30d5\u30a1\u30a4\u30eb\u304c\u73fe\u308c\u305f\u3068\u304d\u306b\u305d\u308c\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30eaPostgreSQL\u30b5\u30fc\u30d0\u30fc\u306e\u30a6\u30a9\u30fc\u30e0\u30a2\u30c3\u30d7\u3068\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30db\u30c3\u30c8\u30b9\u30bf\u30f3\u30d0\u30a4\u3068\u547c\u3070\u308c\u308b\u3001\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306e\u30af\u30a8\u30ea\u3092\u63d0\u4f9b\u3059\u308b\u8aad\u307f\u53d6\u308a\u30ec\u30d7\u30ea\u30ab\u3068\u3057\u3066\u69cb\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u7d99\u7d9a\u7684WAL\u30a2\u30fc\u30ab\u30a4\u30d6<\/h4>\n<p>WAL\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001<code>pg_wal<\/code>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u5916\u306e\u5834\u6240\u306b\u8907\u88fd\u3057\u3001\u30a2\u30fc\u30ab\u30a4\u30d6\u3059\u308b\u624b\u6cd5\u304c\u3042\u308a\u3001\u3053\u308c\u306fWAL\u30a2\u30fc\u30ab\u30a4\u30d6\u3068\u547c\u3070\u308c\u307e\u3059\u3002PostgreSQL\u3067\u306f\u3001WAL\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u305f\u3073\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u6307\u5b9a\u3057\u305f\u30a2\u30fc\u30ab\u30a4\u30d6\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001<code>scp<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3001NFS\u30de\u30a6\u30f3\u30c8\u306e\u3088\u3046\u306a1\u3064\u3001\u307e\u305f\u306f\u8907\u6570\u306e\u5834\u6240\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u88fd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30fc\u30ab\u30a4\u30d6\u3057\u305fWAL\u30bb\u30b0\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u7279\u5b9a\u306e\u6642\u70b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5fa9\u65e7\u306b\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u30ed\u30b0\u30d9\u30fc\u30b9\u306e\u69cb\u6210\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff1a<\/strong>\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u30b3\u30df\u30c3\u30c8\u3059\u308b\u524d\u306b\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306f\u30b9\u30bf\u30f3\u30d0\u30a4\u304c\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u307e\u3067\u5f85\u6a5f\u3057\u307e\u3059\u3002\u3053\u306e\u69cb\u6210\u306e\u5229\u70b9\u306f\u3001\u4e26\u5217\u306e\u66f8\u304d\u8fbc\u307f\u51e6\u7406\u306b\u3088\u308b\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u767a\u751f\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002<\/li>\n<li><strong>\u540c\u671f\u30de\u30eb\u30c1\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff1a<\/strong>\u5404\u30b5\u30fc\u30d0\u30fc\u304c\u66f8\u304d\u8fbc\u307f\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u3001\u5909\u66f4\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u5404\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u524d\u306b\u5143\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u30022PC\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u5229\u7528\u3057\u3001all-or-none\u30eb\u30fc\u30eb\uff08\u5168\u304b\u7121\u304b\u306e\u6cd5\u5247\uff09\u306b\u5f93\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>WAL\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u8a73\u7d30<\/h4>\n<p>\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u52d5\u4f5c\u3059\u308bWAL\u30ec\u30b7\u30fc\u30d0\u30fc\u3068\u547c\u3070\u308c\u308b\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001<strong>recovery.conf<\/strong>\u306e <code>primary_conninfo<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3055\u308c\u305f\u63a5\u7d9a\u60c5\u5831\u3092\u5229\u7528\u3057\u3001TCP\/IP\u63a5\u7d9a\u3092\u5229\u7528\u3057\u3066\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u306b\u306f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u8d77\u52d5\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u3067replication\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300ctrue\u300d\u3001\u300cyes\u300d\u3001\u300c1\u300d\u3001\u300cON\u300d\u306e\u3044\u305a\u308c\u304b\u306e\u30d6\u30fc\u30eb\u5024\u306b\u3088\u3063\u3066\u3001<a href=\"https:\/\/kinsta.com\/blog\/backend-developer-salary\/\">\u30d0\u30c3\u30af\u30a8\u30f3\u30c9<\/a>\u5074\u3067\u306e\u7269\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3walsender\u30e2\u30fc\u30c9\u79fb\u884c\u306e\u5fc5\u8981\u6027\u3092\u628a\u63e1\u3057\u307e\u3059\u3002<\/p>\n<p>WAL\u30bb\u30f3\u30c0\u30fc\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u3042\u308a\u3001WAL\u30ec\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u308b\u3068\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u5f79\u5272\u3092\u62c5\u3044\u307e\u3059\u3002WAL\u30ec\u30b7\u30fc\u30d0\u30fc\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u63a5\u7d9a\u3057\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u64cd\u4f5c\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305f\u304b\u306e\u3088\u3046\u306bWAL\u30ec\u30b3\u30fc\u30c9\u3092WAL\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>WAL\u30ec\u30b3\u30fc\u30c9\u304cWAL\u30bb\u30b0\u30e1\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u5230\u9054\u3059\u308b\u3068\u3001\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306fWAL\u3092\u518d\u751f\u3057\u7d9a\u3051\u3001\u3053\u308c\u306b\u3088\u308a\u30d7\u30e9\u30a4\u30de\u30ea\u3068\u30b9\u30bf\u30f3\u30d0\u30a4\u4e21\u65b9\u3067\u6700\u65b0\u306e\u72b6\u614b\u304c\u7dad\u6301\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_128035\" aria-describedby=\"caption-attachment-128035\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-128035\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/07\/WAL-Streaming-Protocol-Details.png\" alt=\"WAL\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u6d41\u308c\u3092\u793a\u3057\u305f\u56f3\" width=\"1024\" height=\"1020\"><figcaption id=\"caption-attachment-128035\" class=\"wp-caption-text\">WAL\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u6d41\u308c\u3092\u793a\u3057\u305f\u56f3\uff08\u753b\u50cf\u51fa\u5178\uff1a<a href=\"https:\/\/www.enterprisedb.com\/postgres-tutorials\/postgresql-replication-and-automatic-failover-tutorial#continuous-wal\">EnterpriseDB<\/a>\uff09<\/figcaption><\/figure>\n<h2>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8981\u7d20<\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u30e2\u30c7\u30eb\uff08\u30b7\u30f3\u30b0\u30eb\u30de\u30b9\u30bf\u30fc\u3001\u30de\u30eb\u30c1\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u3001\u30bf\u30a4\u30d7\uff08\u7269\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u8ad6\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u3001\u30e2\u30fc\u30c9\uff08\u540c\u671f\u3001\u975e\u540c\u671f\uff09\u306b\u3064\u3044\u3066\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>PostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e2\u30c7\u30eb<\/h3>\n<p>\u307e\u305a\u306f\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306b\u3064\u3044\u3066\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u65e2\u5b58\u306e\u30ce\u30fc\u30c9\u306b\u3055\u3089\u306b\u30ea\u30bd\u30fc\u30b9\u3084\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u80fd\u529b\u3092\u5f37\u5316\u3057\u3001\u6c34\u5e73\u65b9\u5411\u3068\u5782\u76f4\u65b9\u5411\u306b\u3088\u308a\u591a\u304f\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3001\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u6c34\u5e73\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306e\u5178\u578b\u4f8b\u3067\u3042\u308a\u3001\u5782\u76f4\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3088\u308a\u3082\u5b9f\u88c5\u304c\u306f\u308b\u304b\u306b\u56f0\u96e3\u3067\u3059\u3002\u6c34\u5e73\u65b9\u5411\u306e\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306e\u5b9f\u73fe\u306b\u306f\u3001\u4e3b\u306b\u30b7\u30f3\u30b0\u30eb\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08SMR\uff09\u3068\u30de\u30eb\u30c1\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08MMR\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30f3\u30b0\u30eb\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306f1\u3064\u306e\u30ce\u30fc\u30c9\u3067\u306e\u307f\u5909\u66f4\u53ef\u80fd\u3067\u3042\u308a\u3001\u305d\u306e\u5909\u66f4\u306f1\u3064\u3001\u307e\u305f\u306f\u3001\u8907\u6570\u306e\u30ce\u30fc\u30c9\u306b\u8907\u88fd\u3055\u308c\u307e\u3059\u3002\u30ec\u30d7\u30ea\u30ab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u8907\u88fd\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u5909\u66f4\u4ee5\u5916\u3092\u53d7\u3051\u5165\u308c\u308b\u3053\u3068\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u5909\u66f4\u3092\u53d7\u3051\u5165\u308c\u305f\u3068\u3057\u3066\u3082\u3001\u305d\u306e\u5909\u66f4\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30c8\u3055\u308c\u306a\u3044\u4ed5\u69d8\u3067\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001SMR\u306e\u4f7f\u7528\u3067\u4e8b\u8db3\u308a\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001\u8a2d\u5b9a\u3084\u7ba1\u7406\u304c\u305d\u308c\u307b\u3069\u8907\u96d1\u3067\u306f\u306a\u304f\u3001\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u306e\u53ef\u80fd\u6027\u3082\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u30b7\u30f3\u30b0\u30eb\u30de\u30b9\u30bf\u30fc\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30ec\u30d7\u30ea\u30ab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u4e00\u65b9\u5411\u306b\u3057\u304b\u30c7\u30fc\u30bf\u3092\u6d41\u3055\u306a\u3044\u305f\u3081\u3001\u5358\u65b9\u5411\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u3001SMR\u3060\u3051\u3067\u306f\u4e0d\u5341\u5206\u3067\u3001MMR\u3092\u5c0e\u5165\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002MMR\u3067\u306f\u3001\u8907\u6570\u306e\u30ce\u30fc\u30c9\u3092\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3068\u3057\u3066\u6a5f\u80fd\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8907\u6570\u306e\u6307\u5b9a\u3057\u305f\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c6\u30fc\u30d6\u30eb\u884c\u306e\u5909\u66f4\u304c\u3001\u4ed6\u306e\u3059\u3079\u3066\u306e\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u5bfe\u5fdc\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3053\u306e\u30e2\u30c7\u30eb\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u306e\u91cd\u8907\u306a\u3069\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u3088\u304f\u7af6\u5408\u89e3\u6d88\u306e\u65b9\u7b56\u304c\u63a1\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>MMR\u306e\u5f37\u307f\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30db\u30b9\u30c8\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u3066\u3082\u3001\u4ed6\u306e\u30db\u30b9\u30c8\u304c\u66f4\u65b0\u3084\u633f\u5165\u3068\u3044\u3063\u305f\u64cd\u4f5c\u3092\u62c5\u3046\u3053\u3068\u304c\u3067\u304d\u308b<\/li>\n<li>\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304c\u8907\u6570\u306e\u5834\u6240\u306b\u5206\u6563\u3059\u308b\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u304c\u6545\u969c\u3059\u308b\u53ef\u80fd\u6027\u304c\u975e\u5e38\u306b\u4f4e\u3044<\/li>\n<li>\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5e83\u57df\u901a\u4fe1\u7db2\uff08WAN\uff09\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u5730\u7406\u7684\u306b\u8fd1\u3065\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3057\u304b\u3082\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5168\u4f53\u3067\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u308b<\/li>\n<\/ul>\n<p>\u3057\u304b\u3057\u3001MMR\u5c0e\u5165\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u3001\u305d\u306e\u8907\u96d1\u3055\u3068\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u306e\u89e3\u6d88\u306e\u96e3\u3057\u3055\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u306fMMR\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u3089\u305a\u3001\u30d6\u30e9\u30f3\u30c1\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4ecb\u3057\u305fMMR\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/open-source-database\/\">\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9<\/a>\u3001\u7121\u6599\u3001\u6709\u6599\u306a\u3069\u3001\u305d\u306e\u4e2d\u8eab\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a<a href=\"https:\/\/kinsta.com\/blog\/wordpress-database-plugin\/\">\u62e1\u5f35\u3092\u652f\u63f4\u3059\u308b\u9078\u629e\u80a2<\/a>\u306e1\u3064\u304c\u53cc\u65b9\u5411\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08BDR\uff09\u3067\u3059\u3002\u3053\u308c\u306f\u975e\u540c\u671f\u3092\u7279\u5fb4\u3068\u3057\u3001PostgreSQL\u306e\u8ad6\u7406\u30c7\u30b3\u30fc\u30c9\u6a5f\u80fd\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>BDR\u306f\u4ed6\u306e\u30ce\u30fc\u30c9\u4e0a\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u8907\u88fd\u3059\u308b\u305f\u3081\u3001\u9069\u7528\u4e2d\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u53d7\u4fe1\u30ce\u30fc\u30c9\u3067\u30b3\u30df\u30c3\u30c8\u3055\u308c\u305f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u9593\u306b\u7af6\u5408\u304c\u3042\u308b\u3068\u3001\u3053\u306e\u64cd\u4f5c\u304c\u5931\u6557\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e<\/h3>\n<p>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u8ad6\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u7269\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5358\u7d14\u306a\u8ad6\u7406\u64cd\u4f5c<code>initdb<\/code>\u306f\u3001\u30af\u30e9\u30b9\u30bf\u306e\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3068\u3044\u3046\u7269\u7406\u7684\u306a\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u5358\u7d14\u306a\u8ad6\u7406\u64cd\u4f5c<code>CREATE DATABASE<\/code>\u306f\u3001\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3068\u3044\u3046\u7269\u7406\u7684\u306a\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u7269\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u901a\u5e38\u3001\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6271\u3044\u307e\u3059\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f55\u3092\u8868\u3057\u3066\u3044\u308b\u304b\u307e\u3067\u306f\u628a\u63e1\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u65b9\u6cd5\u306f\u3001\u901a\u5e38\u3001\u5225\u306e\u30de\u30b7\u30f3\u306b\u3042\u308b1\u3064\u306e\u30af\u30e9\u30b9\u30bf\u3092\u5bfe\u8c61\u3068\u3057\u305f\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u5b8c\u5168\u306a\u30b3\u30d4\u30fc\u3092\u4fdd\u6301\u3059\u308b\u306e\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30ec\u30d9\u30eb\u307e\u305f\u306f\u30c7\u30a3\u30b9\u30af\u30ec\u30d9\u30eb\u3067\u5b9f\u65bd\u3057\u3001\u6b63\u78ba\u306b\u4e00\u81f4\u3059\u308b\u30d6\u30ed\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ad6\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\uff08\u901a\u5e38\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\uff09\u306b\u57fa\u3065\u3044\u3066\u3001\u30c7\u30fc\u30bf\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3068\u305d\u306e\u5909\u66f4\u5185\u5bb9\u3092\u518d\u73fe\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u7269\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u7570\u306a\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30c6\u30fc\u30d6\u30eb\u3001DML\u64cd\u4f5c\u3092\u6271\u3044\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u30fc\u30ec\u30d9\u30eb\u3067\u306e\u5b9f\u884c\u3068\u306a\u308a\u307e\u3059\u3002\u300c\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u300d\u3068\u300c\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u300d\u3068\u3044\u3046\u65b9\u5f0f\u304c\u63a1\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u304c\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u30ce\u30fc\u30c9\u4e0a\u306e\u30d1\u30d6\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5bfe\u8c61\u306b\u3057\u3066\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u30c7\u30fc\u30bf\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3092\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3002\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306f\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u3066\u3044\u308b\u30d1\u30d6\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u3001\u30ab\u30b9\u30b1\u30fc\u30c9\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u3088\u308a\u8907\u96d1\u306a\u69cb\u6210\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u5f8c\u304b\u3089\u30c7\u30fc\u30bf\u3092\u518d\u3073\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306f\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u3068\u540c\u3058\u9806\u5e8f\u3067\u30c7\u30fc\u30bf\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u30011\u3064\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u5185\u306e\u30d1\u30d6\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4e00\u8cab\u6027\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\uff08\u3053\u308c\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3082\u547c\u3070\u308c\u307e\u3059\uff09\u3002<\/p>\n<p>\u8ad6\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5178\u578b\u7684\u306a\u4f7f\u7528\u4f8b\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>1\u3064\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u307e\u305f\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\uff09\u306e\u5897\u5206\u5909\u66f4\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u3001\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b<\/li>\n<li>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9593\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u5171\u6709\u3059\u308b<\/li>\n<li>\u500b\u3005\u306e\u5909\u66f4\u304c\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306b\u5230\u7740\u3057\u305f\u3068\u304d\u306b\u3001\u305d\u306e\u5909\u66f4\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b<\/li>\n<li>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30921\u3064\u306b\u7d71\u5408\u3059\u308b<\/li>\n<li>\u8907\u88fd\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3001\u8907\u6570\u30b0\u30eb\u30fc\u30d7\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u63d0\u4f9b\u3059\u308b<\/li>\n<\/ul>\n<p>\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u4ed6\u306ePostgreSQL\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u540c\u3058\u3088\u3046\u306b\u52d5\u4f5c\u3057\u3001\u305d\u306e\u30d1\u30d6\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u5834\u5408\u30011\u3064\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u7af6\u5408\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u4e00\u65b9\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u4ed6\u306e\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u304c\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3046\u3068\u3001\u7af6\u5408\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u306f\u4e21\u65b9\u306e\u6a5f\u69cb\u3092\u540c\u6642\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u8ad6\u7406\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u4e21\u65b9\u3092\u304d\u3081\u7d30\u304b\u304f\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e2\u30fc\u30c9<\/h3>\n<p>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u4e3b\u306b\u540c\u671f\u3068\u975e\u540c\u671f\u306e2\u3064\u306e\u30e2\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u306b\u540c\u6642\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u975e\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u307e\u305a\u30db\u30b9\u30c8\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u307f\u3001\u305d\u306e\u5f8c\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3059\u308b\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u540c\u671f\u30e2\u30fc\u30c9\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001\u305d\u306e\u5909\u66f4\u304c\u3059\u3079\u3066\u306e\u30ec\u30d7\u30ea\u30ab\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30c8\u3055\u308c\u305f\u6642\u70b9\u3067\u5b8c\u4e86\u3057\u305f\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30ec\u30d7\u30ea\u30ab\u30b5\u30fc\u30d0\u30fc\u304c\u3059\u3079\u3066\u5e38\u6642\u5229\u7528\u53ef\u80fd\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u540c\u671f\u30e2\u30fc\u30c9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u5373\u6642\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u304c\u8981\u6c42\u3055\u308c\u308b\u30cf\u30a4\u30a8\u30f3\u30c9\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001\u975e\u540c\u671f\u30e2\u30fc\u30c9\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3060\u3051\u3067\u5909\u66f4\u304c\u884c\u308f\u308c\u305f\u6642\u70b9\u3067\u5b8c\u4e86\u3068\u307f\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5909\u66f4\u306f\u3001\u305d\u306e\u5f8c\u30ec\u30d7\u30ea\u30ab\u306b\u8907\u88fd\u3055\u308c\u307e\u3059\u3002\u30ec\u30d7\u30ea\u30ab\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e9\u30b0\u3068\u547c\u3070\u308c\u308b\u4e00\u5b9a\u306e\u671f\u9593\u3001\u540c\u671f\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u3068\u30c7\u30fc\u30bf\u640d\u5931\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u975e\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306f\u5c0f\u3055\u304f\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u8a31\u5bb9\u7bc4\u56f2\uff08\u30db\u30b9\u30c8\u306b\u904e\u5ea6\u306e\u8ca0\u62c5\u3092\u304b\u3051\u308b\u3053\u3068\u306f\u306a\u3044\uff09\u3060\u3068\u8a00\u3048\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30bb\u30ab\u30f3\u30c0\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u306f\u3001\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3088\u308a\u3082\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Linux\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30bb\u30b9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5\u3092\u3054\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306fUbuntu 18.04 LTS\u3068PostgreSQL 10\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-important\">\n            <h3>Important<\/h3>\n        <p>Linux\u306eUbuntu\u30b5\u30fc\u30d0\u30fc\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002Linux\u30b5\u30fc\u30d0\u30fc\u306bPostgreSQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u306f\u4ee5\u4e0b\u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u3067\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<\/aside>\n\n<p>\u305d\u308c\u3067\u306f\u3001\u65e9\u901f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u307e\u305a\u3001Linux\u306bPostgreSQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>PostgreSQL\u306e\u7f72\u540d\u30ad\u30fc\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">wget -q https:\/\/www.postgresql.org\/media\/keys\/ACCC4CF8.asc -O- | sudo apt-key add -<\/code><\/pre>\n<\/li>\n<li>\u6b21\u306b\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001PostgreSQL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">echo \"deb http:\/\/apt.postgresql.org\/pub\/repos\/apt\/ bionic-pgdg main\" | sudo tee \/etc\/apt\/sources.list.d\/postgresql.list<\/code><\/pre>\n<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">sudo apt-get update<\/code><\/pre>\n<\/li>\n<li>apt\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066PostgreSQL\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">sudo apt-get install -y postgresql-10<\/code><\/pre>\n<\/li>\n<li>\u6700\u5f8c\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067PostgreSQL\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">sudo passwd postgres<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u524d\u306b\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u306bPostgreSQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u5fc5\u9808\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e21\u30b5\u30fc\u30d0\u30fc\u3067\u306ePostgreSQL\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3067\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u306bPostgreSQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>\u307e\u305a\u3001PostgreSQL\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">su - postgres<\/code><\/pre>\n<\/li>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">psql -c \"CREATEUSER replication REPLICATION LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD'YOUR_PASSWORD';\"<\/code><\/pre>\n<\/li>\n<li>Ubuntu\u306e\u4efb\u610f\u306enano\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067<strong>pg_hba.cnf<\/strong>\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">nano \/etc\/postgresql\/10\/main\/pg_hba.conf<\/code><\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">host replication  replication  MasterIP\/24  md5<\/code><\/pre>\n<\/li>\n<li><strong>postgresql.conf<\/strong>\u3092\u958b\u3044\u3066\u7de8\u96c6\u3057\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u307e\u3059\u3002\n<pre><code class=\"language-bash\">nano \/etc\/postgresql\/10\/main\/postgresql.conf<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<strong><br \/>\n<\/strong><\/p>\n<pre><code class=\"language-bash\">listen_addresses = 'localhost,MasterIP'\nwal_level = replica\nwal_keep_segments = 64\nmax_wal_senders = 10<\/code><\/pre>\n<\/li>\n<li>\u6700\u5f8c\u306b\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30e1\u30a4\u30f3\u30b5\u30fc\u30d0\u30fc\u3067PostgreSQL\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">systemctl restart postgresql<\/code><\/pre>\n<p>\u3053\u308c\u3067\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3067\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u3067\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/h3>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067PostgreSQL RDMS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">su - postgres<\/code><\/pre>\n<\/li>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001PostgreSQL \u306e\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u3001\u4f5c\u696d\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">systemctl stop postgresql<\/code><\/pre>\n<\/li>\n<li>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067<strong>pg_hba.conf<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">\/\/ \"Edit\" command\nnano \/etc\/postgresql\/10\/main\/pg_hba.conf\n\/\/ \"Configuration\" command\nhost replication  replication  MasterIP\/24  md5<\/code><\/pre>\n<\/li>\n<li>\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e<strong>postgresql.conf<\/strong>\u3092\u958b\u3044\u3066\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u308b\u304b\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u30a2\u30f3\u30b3\u30e1\u30f3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre><code class=\"language-bash\">nano \/etc\/postgresql\/10\/main\/postgresql.conf\nlisten_addresses = 'localhost,SecondaryIP'\nwal_keep_segments = 64\nwal_level = replica\nhot_standby = on\nmax_wal_senders = 10<\/code><\/pre>\n<p><code>SecondaryIP<\/code>\u306f\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306ePostgreSQL\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u3059\u3079\u3066\u524a\u9664\u3059\u308b\u3002\n<pre><code class=\"language-bash\">cd \/var\/lib\/postgresql\/10\/main\nrm -rfv *<\/code><\/pre>\n<\/li>\n<li>PostgreSQL\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u3092PostgreSQL\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">pg_basebackup -h MasterIP -D \/var\/lib\/postgresql\/11\/main\/ -P -U\nreplication --wal-method=fetch<\/code><\/pre>\n<\/li>\n<li>\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u306ePostgreSQL\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u300cEnter\u300d\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30ea\u30ab\u30d0\u30ea\u8a2d\u5b9a\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">\/\/ \"Edit\" Command\nnano \/var\/lib\/postgresql\/10\/main\/recovery.conf\n\/\/ Configuration\nstandby_mode   = 'on'\nprimary_conninfo = 'host=MasterIP port=5432 user=replication password=YOUR_PASSWORD'\ntrigger_file = '\/tmp\/MasterNow'<\/code><\/pre>\n<p>\u3053\u3053\u3067\u3001<code>YOUR_PASSWORD<\/code>\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fcPostgreSQL\u3067\u4f5c\u6210\u3057\u305f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8a2d\u5b9a\u3067\u304d\u305f\u3089\u3001\u30bb\u30ab\u30f3\u30c0\u30eaPostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u505c\u6b62\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">systemctl start postgresql<\/code><\/pre>\n<h3>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u30c6\u30b9\u30c8<\/h3>\n<p>\u305d\u308c\u3067\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u540c\u3058\u3082\u306e\u304c\u53cd\u6620\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u65e9\u901f\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306e\u3067\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n<pre><code class=\"language-bash\">su - postgres\npsql<\/code><\/pre>\n<\/li>\n<li>\u3053\u3053\u3067\u3001\u300ctesttable\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u7c21\u5358\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306ePostgreSQL\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">CREATE TABLE testtable (websites varchar(100));\nINSERT INTO testtable VALUES ('section.com');\nINSERT INTO testtable VALUES ('google.com');\nINSERT INTO testtable VALUES ('github.com');<\/code><\/pre>\n<\/li>\n<li>\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306ePostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">su - postgres psql<\/code><\/pre>\n<\/li>\n<li>\u30c6\u30fc\u30d6\u30eb\u300ctesttable\u300d\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306ePostgreSQL\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5168\u4f53\u3092\u8868\u793a\u3059\u308b\u3082\u306e\u3067\u3059\u3002\n<pre><code class=\"language-bash\">select * from testtable;<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">|  websites  |\n\n-------------------\n\n| section.com |\n\n| google.com |\n\n| github.com  |\n\n--------------------<\/code><\/pre>\n<p>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u30c7\u30fc\u30bf\u3092\u78ba\u8a8d\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306f\u6210\u529f\u3067\u3059\u3002<\/p>\n<h2>PostgreSQL\u306e\u624b\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u306e\u624b\u9806<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001PostgreSQL\u306e\u624b\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u306e\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3092\u30af\u30e9\u30c3\u30b7\u30e5\u3055\u305b\u307e\u3059\u3002<\/li>\n<li>\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306e\u6607\u683c\u3092\u884c\u3044\u307e\u3059\u3002\n<pre><code class=\"language-bash\">.\/pg_ctl promote -D ..\/sb_data\/\nserver promoting<\/code><\/pre>\n<\/li>\n<li>\u6607\u683c\u3057\u305f\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u884c\u3092\u633f\u5165\u3057\u307e\u3059\u3002\n<pre><code class=\"language-bash\">-bash-4.2$ .\/edb-psql -p 5432 edb\n\nPassword:\n\npsql.bin (10.7)\n\nType \"help\" <strong>for<\/strong> help.\n\nedb=# <strong>insert<\/strong> <strong>into<\/strong> abc <strong>values<\/strong>(4,'Four');<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u633f\u5165\u304c\u6b63\u5e38\u306b\u884c\u308f\u308c\u3066\u3044\u308c\u3070\u3001\u3053\u308c\u307e\u3067\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3060\u3063\u305f\u30b9\u30bf\u30f3\u30d0\u30a4\u304c\u65b0\u3057\u3044\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6607\u683c\u3057\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>PostgreSQL\u3067\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3092\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u81ea\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>EDB PostgreSQL\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\uff08EFM\uff09\u304c\u5fc5\u8981\u3067\u3059\u3002EFM\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3068\u30b9\u30bf\u30f3\u30d0\u30a4\u30ce\u30fc\u30c9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001EFM\u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>EFM\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u5065\u5168\u6027\u3092\u7d99\u7d9a\u7684\u306b\u76e3\u8996\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u30a4\u30d9\u30f3\u30c8\u306b\u57fa\u3065\u3044\u3066\u30e1\u30fc\u30eb\u306b\u3088\u308b\u8b66\u544a\u3092\u9001\u4fe1\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u969c\u5bb3\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u6700\u65b0\u306e\u30b9\u30bf\u30f3\u30d0\u30a4\u306b\u5207\u308a\u66ff\u308f\u308a\u3001\u4ed6\u306e\u3059\u3079\u3066\u306e\u30b9\u30bf\u30f3\u30d0\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u69cb\u6210\u3057\u3066\u65b0\u3057\u3044\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3092\u8a8d\u8b58\u3059\u308b\u4ed5\u69d8\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\uff08pgPool\u306a\u3069\uff09\u306e\u518d\u8a2d\u5b9a\u3082\u884c\u3044\u3001\u300c\u30b9\u30d7\u30ea\u30c3\u30c8\u30d6\u30ec\u30a4\u30f3\u300d\uff082\u3064\u306e\u30ce\u30fc\u30c9\u304c\u305d\u308c\u305e\u308c\u30d7\u30e9\u30a4\u30de\u30ea\u3060\u3068\u601d\u3044\u8fbc\u3093\u3067\u3057\u307e\u3046\u72b6\u614b\u306e\u3053\u3068\uff09\u306e\u767a\u751f\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f<a href=\"https:\/\/kinsta.com\/jp\/wordpress-hosting\/dedicated\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406<\/a>\u3001\u7279\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u74b0\u5883\u306b\u304a\u3044\u3066\u6700\u3082\u91cd\u8981\u306a2\u3064\u306e\u8981\u7d20\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u65e2\u5b58\u306e\u30ce\u30fc\u30c9\u306b\u30ea\u30bd\u30fc\u30b9\/\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u5782\u76f4\u65b9\u5411\u306b\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u591a\u304f\u306e\u5834\u5408\u3001\u65b0\u3057\u3044\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u30b3\u30b9\u30c8\u3084\u5236\u9650\u304c\u3042\u308b\u305f\u3081\u3001\u3069\u3093\u306a\u72b6\u6cc1\u3067\u3082\u53ef\u80fd\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u6c34\u5e73\u65b9\u5411\u306e\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u65e2\u5b58\u306e\u30ce\u30fc\u30c9\u306e\u6a5f\u80fd\u3092\u5f37\u5316\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u65e2\u5b58\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30ce\u30fc\u30c9\u306b\u3055\u3089\u306b\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u3001PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u51fa\u756a\u3067\u3059\u3002<br \/>\n<br \/>\n\u4eca\u56de\u306f\u3001PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\u3001\u30e1\u30ea\u30c3\u30c8\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e2\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001PostgreSQL\u306e\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\uff08SMR\u3068MMR\uff09\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u666e\u6bb5\u3001\u3069\u3093\u306a\u65b9\u6cd5\u3092\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u3042\u306a\u305f\u306b\u3068\u3063\u3066\u6700\u3082\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6a5f\u80fd\u306f\u4f55\u3067\u3059\u304b\uff1f\u305d\u3057\u3066\u3001\u305d\u306e\u7406\u7531\u306f\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30a4\u30c8\u306e\u6240\u6709\u8005\u3067\u3042\u308c\u3070\u8ab0\u3067\u3082\u8eab\u306b\u899a\u3048\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e &#8230;<\/p>\n","protected":false},"author":117,"featured_media":41302,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[800],"class_list":["post-41301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-postgresql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09<\/title>\n<meta name=\"description\" content=\"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09\" \/>\n<meta property=\"og:description\" content=\"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-24T06:30:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T15:12:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Salman Ravoof\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\" \/>\n<meta name=\"twitter:creator\" content=\"@salmanravoof\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Salman Ravoof\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\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\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\"},\"author\":{\"name\":\"Salman Ravoof\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\"},\"headline\":\"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09\",\"datePublished\":\"2023-01-24T06:30:21+00:00\",\"dateModified\":\"2023-08-25T15:12:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\"},\"wordCount\":250,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\",\"name\":\"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\",\"datePublished\":\"2023-01-24T06:30:21+00:00\",\"dateModified\":\"2023-08-25T15:12:05+00:00\",\"description\":\"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/postgresql\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\",\"name\":\"Salman Ravoof\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"caption\":\"Salman Ravoof\"},\"description\":\"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.\",\"sameAs\":[\"https:\/\/salmanravoof.com\",\"https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/\",\"https:\/\/x.com\/salmanravoof\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09","description":"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","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:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/","og_locale":"ja_JP","og_type":"article","og_title":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09","og_description":"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2023-01-24T06:30:21+00:00","article_modified_time":"2023-08-25T15:12:05+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","type":"image\/png"}],"author":"Salman Ravoof","twitter_card":"summary_large_image","twitter_description":"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","twitter_creator":"@salmanravoof","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Salman Ravoof","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/"},"author":{"name":"Salman Ravoof","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987"},"headline":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09","datePublished":"2023-01-24T06:30:21+00:00","dateModified":"2023-08-25T15:12:05+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/"},"wordCount":250,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/","url":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/","name":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","datePublished":"2023-01-24T06:30:21+00:00","dateModified":"2023-08-25T15:12:05+00:00","description":"PostgreSQL\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u3001\u8003\u616e\u3057\u305f\u3044\u8981\u7d20\u3001\u7a2e\u985e\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b\u6226\u7565\u306a\u3069\u3001\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/01\/postgresql-replication.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/postgresql-replication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"PostgreSQL","item":"https:\/\/kinsta.com\/jp\/topics\/postgresql\/"},{"@type":"ListItem","position":3,"name":"PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff08\u5fb9\u5e95\u89e3\u8aac\uff09"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987","name":"Salman Ravoof","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","caption":"Salman Ravoof"},"description":"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.","sameAs":["https:\/\/salmanravoof.com","https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/","https:\/\/x.com\/salmanravoof"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/41301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=41301"}],"version-history":[{"count":13,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/41301\/revisions"}],"predecessor-version":[{"id":41380,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/41301\/revisions\/41380"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/de"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/es"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/nl"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/jp"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/41301\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/41302"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=41301"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=41301"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=41301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}