{"id":534,"date":"2017-12-05T08:00:23","date_gmt":"2017-12-04T23:00:23","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=534"},"modified":"2021-09-30T09:00:02","modified_gmt":"2021-09-30T00:00:02","slug":"aws-rds-postgresql%e3%81%b8%e3%81%ae%e6%8e%a5%e7%b6%9a","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/linux\/aws-rds-postgresql%e3%81%b8%e3%81%ae%e6%8e%a5%e7%b6%9a","title":{"rendered":"AWS RDS &#8211; PostgreSQL\u3078\u306e\u63a5\u7d9a"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<hr \/>\n<p>Amazon RDS\u3067\u69cb\u7bc9\u3057\u305fPostgreSQL\u3078\u306e\u300c psql \u300d\u3092\u7528\u3044\u305f\u63a5\u7d9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u74b0\u5883<\/strong><\/p>\n<ul>\n<li>Amazon Linux<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<hr \/>\n<p><strong>1.\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/strong><br \/>\n\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nyum install -y https:\/\/download.postgresql.org\/pub\/repos\/yum\/9.6\/redhat\/rhel-6-x86_64\/pgdg-ami201503-96-9.6-2.noarch.rpm\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper\r\npgdg-ami201503-96-9.6-2.noarch.rpm                       | 4.6 kB     00:00\r\n\/var\/tmp\/yum-root-6FVnUE\/pgdg-ami201503-96-9.6-2.noarch.rpm \u3092\u8abf\u3079\u3066\u3044\u307e\u3059: pgdg-ami201503-96-9.6-2.noarch\r\n\/var\/tmp\/yum-root-6FVnUE\/pgdg-ami201503-96-9.6-2.noarch.rpm \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\r\n\u4f9d\u5b58\u6027\u306e\u89e3\u6c7a\u3092\u3057\u3066\u3044\u307e\u3059\r\namzn-main\/latest                                         | 2.1 kB     00:00\r\namzn-updates\/latest                                      | 2.5 kB     00:00\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 pgdg-ami201503-96.noarch 0:9.6-2 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u89e3\u6c7a\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\r\n\r\n\u4f9d\u5b58\u6027\u3092\u89e3\u6c7a\u3057\u307e\u3057\u305f\r\n\r\n================================================================================\r\n Package             \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\r\n                              \u30d0\u30fc\u30b8\u30e7\u30f3\r\n                                        \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc                       \u5bb9\u91cf\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:\r\n pgdg-ami201503-96   noarch   9.6-2     \/pgdg-ami201503-96-9.6-2.noarch   2.2 k\r\n\r\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d04\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb  1 \u30d1\u30c3\u30b1\u30fc\u30b8\r\n\r\n\u5408\u8a08\u5bb9\u91cf: 2.2 k\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bb9\u91cf: 2.2 k\r\nDownloading packages:\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : pgdg-ami201503-96-9.6-2.noarch                  1\/1\r\n  \u691c\u8a3c\u4e2d                  : pgdg-ami201503-96-9.6-2.noarch                  1\/1\r\n\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:\r\n  pgdg-ami201503-96.noarch 0:9.6-2\r\n\r\n\u5b8c\u4e86\u3057\u307e\u3057\u305f!\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2.postgresql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/strong><br \/>\n\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nyum install -y postgresql96\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper\r\n23 packages excluded due to repository priority protections\r\n\u4f9d\u5b58\u6027\u306e\u89e3\u6c7a\u3092\u3057\u3066\u3044\u307e\u3059\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 postgresql96.x86_64 0:9.6.4-1.77.amzn1 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: postgresql96-libs(x86-64) = 9.6.4-1.77.amzn1 \u306e\u30d1 \u30c3\u30b1\u30fc\u30b8: postgresql96-9.6.4-1.77.amzn1.x86_64\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 postgresql96-libs.x86_64 0:9.6.4-1.77.amzn1 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u89e3\u6c7a\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\r\n\r\n\u4f9d\u5b58\u6027\u3092\u89e3\u6c7a\u3057\u307e\u3057\u305f\r\n\r\n================================================================================\r\n Package               \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\r\n                                  \u30d0\u30fc\u30b8\u30e7\u30f3             \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc      \u5bb9\u91cf\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:\r\n postgresql96          x86_64     9.6.4-1.77.amzn1       amzn-updates     5.0 M\r\n\u4f9d\u5b58\u6027\u95a2\u9023\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059:\r\n postgresql96-libs     x86_64     9.6.4-1.77.amzn1       amzn-updates     283 k\r\n\r\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d04\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb  1 \u30d1\u30c3\u30b1\u30fc\u30b8 (+1 \u500b\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u30d1\u30c3\u30b1\u30fc\u30b8)\r\n\r\n\u7dcf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bb9\u91cf: 5.2 M\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bb9\u91cf: 20 M\r\nDownloading packages:\r\n(1\/2): postgresql96-libs-9.6.4-1.77.amzn1.x86_64.rpm       | 283 kB   00:00\r\n(2\/2): postgresql96-9.6.4-1.77.amzn1.x86_64.rpm            | 5.0 MB   00:00\r\n--------------------------------------------------------------------------------\r\n\u5408\u8a08                                               6.6 MB\/s | 5.2 MB  00:00\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : postgresql96-libs-9.6.4-1.77.amzn1.x86_64       1\/2\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : postgresql96-9.6.4-1.77.amzn1.x86_64            2\/2\r\n  \u691c\u8a3c\u4e2d                  : postgresql96-9.6.4-1.77.amzn1.x86_64            1\/2\r\n  \u691c\u8a3c\u4e2d                  : postgresql96-libs-9.6.4-1.77.amzn1.x86_64       2\/2\r\n\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:\r\n  postgresql96.x86_64 0:9.6.4-1.77.amzn1\r\n\r\n\u4f9d\u5b58\u6027\u95a2\u9023\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f:\r\n  postgresql96-libs.x86_64 0:9.6.4-1.77.amzn1\r\n\r\n\u5b8c\u4e86\u3057\u307e\u3057\u305f!\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3.\u63a5\u7d9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3000<\/strong><span style=\"color: #0000ff;\">\u203b[ ]\u306f\u4e0d\u8981\u3067\u3059\u3002<\/span><br \/>\n\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\npsql -U[MASTER USER] -h[ENDPOINT] [DATABASE NAME]\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>\r\n[DATABASE NAME]=>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Amazon RDS\u3067\u69cb\u7bc9\u3057\u305fPostgreSQL\u3078\u306e\u300c psql \u300d\u3092\u7528\u3044\u305f\u63a5\u7d9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u74b0\u5883 Amazon Linux &nbsp; \u624b\u9806 1.\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057&#8230;<\/p>\n","protected":false},"author":3,"featured_media":539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[23,3],"tags":[71,72,70],"class_list":["post-534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","category-linux","tag-postgresql","tag-psql","tag-rds"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo-postgresql.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-8C","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=534"}],"version-history":[{"count":9,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/534\/revisions"}],"predecessor-version":[{"id":1780,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/534\/revisions\/1780"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/539"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}