{"id":259,"date":"2022-03-23T23:22:43","date_gmt":"2022-03-23T14:22:43","guid":{"rendered":"https:\/\/kashiiblog.com\/?p=259"},"modified":"2022-03-24T00:25:27","modified_gmt":"2022-03-23T15:25:27","slug":"%e3%80%90oss-db-exam-silver%e3%80%916-%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2","status":"publish","type":"post","link":"https:\/\/kashiiblog.com\/?p=259","title":{"rendered":"6.\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ea\u30b9\u30c8\u30a2\u3010OSS DB exam Silver\u3011"},"content":{"rendered":"<p>\u73fe\u5728OSS-DB Silver Ver.2\u3092\u52c9\u5f37\u4e2d\u306e\u30b5\u30a4\u30c8\u4e3b\u3067\u3059\u3002<\/p>\n<p>OSS DB Silver\u3092\u672c\u3067\u52c9\u5f37\u3057\u3066\u3044\u3066\u3082\u56f3\u306b\u3057\u306a\u3044\u3068\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u308a\u3001\u8868\u306b\u3057\u305f\u307b\u3046\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u81ea\u5206\u304c\u899a\u3048\u306b\u304f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u3001\u6df7\u540c\u3057\u3084\u3059\u3044\u3053\u3068\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u306f\u5e38\u8b58\u306a\u3053\u3068\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u79c1\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u52c9\u5f37\u6cd5\u306a\u3069\u306f\u4e0b\u8a18\u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/kashiiblog.com\/?p=239\">OSS DB Silver\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3084\u3063\u305f\u3053\u3068<\/a><\/p>\n<h2>OSS DB exam Silver\u306e\u52c9\u5f37\u5185\u5bb9<\/h2>\n<ol>\n<li><span style=\"font-weight: 400;\"><a href=\"https:\/\/kashiiblog.com\/?p=247\">\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e00\u822c\u7684\u7279\u5fb4<\/a><\/span><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=249\"><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u57fa\u790e\u77e5\u8b58<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=252\"><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=254\"><span style=\"font-weight: 400;\">\u6a19\u6e96\u4ed8\u5c5e\u30c4\u30fc\u30eb<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=257\"><span style=\"font-weight: 400;\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/span><\/a><\/li>\n<li><span style=\"font-weight: 400;\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ea\u30b9\u30c8\u30a2<strong>\u21e6\u4eca\u65e5\u306f\u3053\u308c\uff01<\/strong><\/span><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=261\"><span style=\"font-weight: 400;\">\u57fa\u672c\u7684\u306a\u904b\u7528\u7ba1\u7406<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=263\"><span style=\"font-weight: 400;\">SQL\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=265\"><span style=\"font-weight: 400;\">\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u3068\u6f14\u7b97\u5b50<\/span><\/a><\/li>\n<li><a href=\"https:\/\/kashiiblog.com\/?p=267\"><span style=\"font-weight: 400;\">\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3<\/span><\/a><\/li>\n<\/ol>\n<h2>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ea\u30b9\u30c8\u30a2<\/h2>\n<h3><span style=\"font-weight: 400;\">\u3010Part6\u3011OSS DB Exam Silver \u6280\u8853\u89e3\u8aac\u30bb\u30df\u30ca\u30fc \uff5e PostgreSQL \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30fb\u30ea\u30b9\u30c8\u30a2 PITR \u2460\uff5e<\/span><\/h3>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/Czx1Kr7OD-Q\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3><span style=\"font-weight: 400;\">\u3010Part7\u3011OSS DB Exam Silver \u6280\u8853\u89e3\u8aac\u30bb\u30df\u30ca\u30fc \uff5e PostgreSQL \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30fb\u30ea\u30b9\u30c8\u30a2 PITR \u2461 \uff5e<\/span><\/h3>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/gP-ripEm4yo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h4><strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b7\u30b9\u30c6\u30e0\u3067\u30c7\u30fc\u30bf\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u8907\u88fd<\/span><\/p>\n<h4><strong>\u30ea\u30b9\u30c8\u30a2<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u640d\u5931\u304c\u8d77\u304d\u305f\u969b\u306b\u8907\u88fd\u3057\u3066\u304a\u3044\u305f\u30c7\u30fc\u30bf\u304b\u3089\u623b\u3059\u3053\u3068<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">\u3084\u308a\u65b9\u2460<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5f62\u5f0f<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u30ea\u30b9\u30c8\u30a2\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u5e73\u6587\u5f62\u5f0f<\/span><\/td>\n<td><span style=\"font-weight: 400;\">pg_dump\u30b3\u30de\u30f3\u30c9\u307e\u305f\u306fpg_dumpall\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<td><span style=\"font-weight: 400;\">psql\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u5e73\u6587\u5f62\u5f0f\u4ee5\u5916<\/span><\/td>\n<td><span style=\"font-weight: 400;\">pg_dump\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<td><span style=\"font-weight: 400;\">pg_restore\u30b3\u30de\u30f3\u30c9<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b3\u30de\u30f3\u30c9<\/strong><\/h4>\n<ul>\n<li><span style=\"font-weight: 400;\">pg_dump [\u63a5\u7d9a\u30aa\u30d7\u30b7\u30e7\u30f3][-Fp | -Fc | -Ft][-f \u30d5\u30a1\u30a4\u30eb\u540d][\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d]<\/span><\/li>\n<li><span style=\"font-weight: 400;\">pg_dumpall [\u63a5\u7d9a\u30aa\u30d7\u30b7\u30e7\u30f3][-f \u30d5\u30a1\u30a4\u30eb\u540d]<\/span><\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td>\u30aa\u30d7\u30b7\u30e7\u30f3<\/td>\n<td>\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>-Fp<\/td>\n<td>\u51fa\u529b\u5f62\u5f0f(Format)\u3068\u3057\u3066\u5e73\u6587(plain)\u3092\u6307\u5b9a\u3059\u308b\u3002-F\u306e\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8<\/td>\n<\/tr>\n<tr>\n<td>-Fc<\/td>\n<td>\u51fa\u529b\u5f62\u5f0f(Format)\u3068\u3057\u3066\u30ab\u30b9\u30bf\u30e0\u5f62\u5f0f(custom)\u3092\u6307\u5b9a\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>-Ft<\/td>\n<td>\u51fa\u529b\u5f62\u5f0f(Format)\u3068\u3057\u3066tar\u5f62\u5f0f(tar)\u3092\u6307\u5b9a\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>-f<\/td>\n<td>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b\u3002\u7701\u7565\u3057\u305f\u5834\u5408\u306f\u6a19\u6e96\u51fa\u529b\u3068\u306a\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>\u30ea\u30b9\u30c8\u30a2\u30b3\u30de\u30f3\u30c9<\/strong><\/h4>\n<ul>\n<li><span style=\"font-weight: 400;\">psql [\u63a5\u7d9a\u30aa\u30d7\u30b7\u30e7\u30f3][-f \u30d5\u30a1\u30a4\u30eb\u540d]<\/span><\/li>\n<li><span style=\"font-weight: 400;\">pg_restore[\u63a5\u7d9a\u30aa\u30d7\u30b7\u30e7\u30f3][\u30aa\u30d7\u30b7\u30e7\u30f3][-d \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d][\u30d5\u30a1\u30a4\u30eb\u540d]<\/span><\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u8aac\u660e<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">-d<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u30ea\u30b9\u30c8\u30a2\u5148\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092\u6307\u5b9a\u3059\u308b<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff06\u30ea\u30b9\u30c8\u30a2\u4f8b<\/strong><\/h4>\n<ul>\n<li><span style=\"font-weight: 400;\">\u5e73\u6587\u3067\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff06\u30ea\u30b9\u30c8\u30a2<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u30ab\u30b9\u30bf\u30e0\u5f62\u5f0f\u3067\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff06\u30ea\u30b9\u30c8\u30a2<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u3000<\/span><span style=\"font-weight: 400;\">\u203b\u30dd\u30a4\u30f3\u30c8\uff1a\u3069\u308c\u3082PostgreSQL\u7a3c\u50cd\u4e2d\u306b\u5b9f\u884c<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">\u3084\u308a\u65b9\u2461\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30b3\u30d4\u30fc\u306b\u3088\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff06\u30ea\u30b9\u30c8\u30a2<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u30b5\u30fc\u30d0\u3092\u505c\u6b62\u3057\u305f\u72b6\u614b\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u3092\u30b3\u30d4\u30fc\u306b\u3088\u3063\u3066\u53d6\u5f97\u3057\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u30b5\u30fc\u30d0\u304c\u52d5\u4f5c\u3057\u306a\u3044\u3053\u3068\u3092\u8a8d\u8b58\u3057\u3066\u30ea\u30b9\u30c8\u30a2\u3057\u307e\u3059\u3002<\/span><\/p>\n<h4><strong>\u7269\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u8ad6\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong><\/h4>\n<h5>\u7269\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h5>\n<p><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u3084\u30c7\u30fc\u30bf\u3068\u306f\u7121\u95a2\u4fc2\u306b\u53d6\u5f97\u3059\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/p>\n<h5>\u8ad6\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h5>\n<p><span style=\"font-weight: 400;\">\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u3084\u30c7\u30fc\u30bf\u3092\u610f\u8b58\u3057\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/p>\n<h4><strong>\u30aa\u30f3\u30e9\u30a4\u30f3\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30aa\u30d5\u30e9\u30a4\u30f3\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a3c\u50cd\u4e2d\u306b\u5b9f\u884c\u3059\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u505c\u6b62\u3055\u305b\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308b\u3053\u3068\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff08\u30b3\u30fc\u30eb\u30c9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff09<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">\u3084\u308a\u65b9\u2462PITR\uff08Point In Time Recovery\uff09<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u52a0\u3048\u3066\u3001PostgreSQL\u306e\u904b\u7528\u4e2d\u306b\u30a2\u30fc\u30ab\u30a4\u30d6\u3068\u3057\u3066\u8a18\u9332\u3055\u308c\u305f\u66f4\u65b0\u30c7\u30fc\u30bf\u3092\u5143\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30ea\u30ab\u30d0\u30ea\u3059\u308b\u6a5f\u80fd\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u3042\u308b\u6642\u70b9\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3002PostgreSQL\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u8a18\u9332\u3059\u308b\u6a5f\u69cb\u304c\u5099\u308f\u3063\u3066\u304a\u308a\u3001\u5185\u5bb9\u306f\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u308b\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5148\u884c\u66f8\u304d\u8fbc\u307f\u30ed\u30b0\uff1dWAL(Write Ahead Logging)\u3092\u5225\u306e\u5834\u6240\u3078\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u2192WAL\u30a2\u30fc\u30ab\u30a4\u30d6<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u30ed\u30fc\u30eb\u30d5\u30a9\u30ef\u30fc\u30c9\u30ea\u30ab\u30d0\u30ea<\/span><span style=\"font-weight: 400;\">\u21d4\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3000\u5f8c\u308d\u5411\u304d\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u9805\u76ee<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u4e3b\u306a\u624b\u9806<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u524d\u6e96\u5099\/\u8a2d\u5b9a<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WAL\u30a2\u30fc\u30ab\u30a4\u30d6\u3001postgresql.conf\u306e\u8a2d\u5b9a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u3079\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/td>\n<td><span style=\"font-weight: 400;\">pg_start_backup()\u95a2\u6570\uff0fpg_stop_backup()\u95a2\u6570\u306b\u3088\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30ea\u30ab\u30d0\u30ea<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u2460\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u30ea\u30b9\u30c8\u30a2<\/span><br \/>\n<span style=\"font-weight: 400;\">\u2461\u672a\u30a2\u30fc\u30ab\u30a4\u30d6\u306eWAL\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<\/span><br \/>\n<span style=\"font-weight: 400;\">\u2462recovery.conf\u306e\u8a2d\u5b9a\u3001PostgreSQL\u306e\u8d77\u52d5<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>a.PITR\u306b\u3088\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u524d\u6e96\u5099\/\u8a2d\u5b9a<\/strong><\/h4>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u8aac\u660e<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">wal_level<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WAL\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u60c5\u5831\u306e\u5ea6\u5408\u3044\u3092\u6307\u5b9a\u3059\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306freplica\u3002minimal\u3001replica\u3001logical\u3092\u6307\u5b9a\u3067\u304d\u308b\u3002PITR\u4f7f\u7528\u6642\u306freplica\u307e\u305f\u306flogical\u3092\u6307\u5b9a\u3059\u308b\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">archive_mode<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WAL\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u6307\u5b9a\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306fOFF\u3002PITR\u4f7f\u7528\u6642\u306fon\u306b\u8a2d\u5b9a\u3059\u308b<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">archive_command<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WAL\u30d5\u30a1\u30a4\u30eb\u3092WAL\u30a2\u30fc\u30ab\u30a4\u30d6\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u306e\u30b7\u30a7\u30a2\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3002<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>b.\u3079\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">pg_start_backup(\u2018\u30e9\u30d9\u30eb\u540d\u2019)<\/span><span style=\"font-weight: 400;\">\u2192pg_stop_backup()<\/span><\/p>\n<h4><strong>c.\u30ea\u30ab\u30d0\u30ea<\/strong><\/h4>\n<ol>\n<li><span style=\"font-weight: 400;\">\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u30ea\u30b9\u30c8\u30a2<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u672a\u30a2\u30fc\u30ab\u30a4\u30d6\u306eWAL\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<\/span><\/li>\n<li><span style=\"font-weight: 400;\">recovery.conf\u306e\u8a2d\u5b9a\u3001PostgreSQL\u306e\u8d77\u52d5<\/span><\/li>\n<\/ol>\n<h3><span style=\"font-weight: 400;\">COPY\u6587\u3068\\copy\u30b3\u30de\u30f3\u30c9<\/span><\/h3>\n<ul>\n<li><span style=\"font-weight: 400;\">COPY\u6587\uff1a\u30b5\u30fc\u30d0\u5074\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u306e\u3084\u308a\u53d6\u308a\u3092\u3059\u308b<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\\copy\u30b3\u30de\u30f3\u30c9\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4ecb\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3084\u308a\u53d6\u308a\u3092\u3059\u308b<\/span><\/li>\n<\/ul>\n<h4><strong>COPY\u6587<\/strong><\/h4>\n<ul>\n<li><span style=\"font-weight: 400;\">COPY \u30c6\u30fc\u30d6\u30eb\u540d TO {\u2018\u7d76\u5bfe\u30d1\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u2019| STDOUT}[[WITH](\u30aa\u30d7\u30b7\u30e7\u30f3[,\u2026])]<\/span><\/li>\n<li><span style=\"font-weight: 400;\">COPY \u30c6\u30fc\u30d6\u30eb\u540d FROM {\u2018\u7d76\u5bfe\u30d1\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u2019| STDIN}[[WITH](\u30aa\u30d7\u30b7\u30e7\u30f3[,\u2026])]<\/span><\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u8aac\u660e<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">DELIMITER\u2019\u533a\u5207\u308a\u6587\u5b57\u2019<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u5404\u884c\u306e\u5217\u3092\u533a\u5207\u308b\u6587\u5b57\u3092\u6307\u5b9a\u3059\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u30bf\u30d6\u6587\u5b57\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">FORMAT csv<\/span><\/td>\n<td><span style=\"font-weight: 400;\">CSV\u5f62\u5f0f\u3067\u5165\u51fa\u529b\u3059\u308b\u5834\u5408\u306b\u6307\u5b9a\u3059\u308b\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">HEADER<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u30d8\u30c3\u30c0\u884c\u306e\u6307\u5b9a\u3002\u51fa\u529b\u3067\u306f\u5404\u5217\u306e\u540d\u524d\u304c\u51fa\u529b\u3055\u308c\u3001\u5165\u529b\u3067\u306f\u5148\u982d\u884c\u304c\u7121\u8996\u3055\u308c\u308b\u3002CSV\u7d4c\u7def\u751f\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u6709\u52b9<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>\\copy\u30b3\u30de\u30f3\u30c9<\/strong><\/h4>\n<ul>\n<li><span style=\"font-weight: 400;\">\\copy \u30c6\u30fc\u30d6\u30eb\u540d\u3000to {\u30d5\u30a1\u30a4\u30eb\u540d|stdout} [with] [delimiter [as] \u2018\u533a\u5207\u308a\u6587\u5b57\u2019[csv [header]]]<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\\copy \u30c6\u30fc\u30d6\u30eb\u540d\u3000from {\u30d5\u30a1\u30a4\u30eb\u540d|stdint} [with] [delimiter [as] \u2018\u533a\u5207\u308a\u6587\u5b57\u2019[csv [header]]]<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5358\u4f4d\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u7269\u7406\u7684\u306b\u884c\u308f\u308c\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/span><\/p>\n<p><span style=\"font-weight: 400;\">tar\u30b3\u30de\u30f3\u30c9\u306f\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u4f7f\u3048\u308b<\/span><\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u4e00\u756a\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u96e3\u3057\u304b\u3063\u305f\u3002\u7269\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u8ad6\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u3082\u9055\u3044\u304c\u3042\u3063\u305f\u308a\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u7d42\u3048\u305f\u5f8c\u306e\u30ea\u30b9\u30c8\u30a2\u3067\u3082\u9055\u3044\u304c\u3042\u308b\u3002\u305d\u306e\u8a73\u7d30\u90e8\u5206\u307e\u3067\u7d30\u304b\u304f\u898b\u308b\u306e\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u56f3\u89e3\u3057\u3066\u307f\u305f\u306e\u3067\u8ffd\u52a0\u3067\u63b2\u8f09\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73fe\u5728OSS-DB Silver Ver.2\u3092\u52c9\u5f37\u4e2d\u306e\u30b5\u30a4\u30c8\u4e3b\u3067\u3059\u3002 OSS DB Silver\u3092\u672c\u3067\u52c9\u5f37\u3057\u3066\u3044\u3066\u3082\u56f3\u306b\u3057\u306a\u3044\u3068\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u308a\u3001\u8868\u306b\u3057\u305f\u307b\u3046\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u81ea\u5206\u304c\u899a\u3048\u306b\u304f\u3044\u3068\u601d\u3063\u305f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":244,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[],"class_list":{"0":"post-259","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-oss-db-silver-ver-2","8":"article cf"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":6,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions\/307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=\/wp\/v2\/media\/244"}],"wp:attachment":[{"href":"https:\/\/kashiiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kashiiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}