{"id":1189,"date":"2023-09-18T01:42:06","date_gmt":"2023-09-17T16:42:06","guid":{"rendered":"https:\/\/wp.netspheres.org\/fow\/?p=1189"},"modified":"2023-09-18T19:40:25","modified_gmt":"2023-09-18T10:40:25","slug":"postgresql-v15-to-v16-upgrade-pg_upgrade","status":"publish","type":"post","link":"https:\/\/wp.netspheres.org\/fow\/archives\/1189","title":{"rendered":"PostgreSQL v15 to v16 upgrade (pg_upgrade)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\uac1c\uc694<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mastodon \ub2e8\ub3c5 \uc6a9\ub3c4\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5c5\uadf8\ub808\uc774\ub4dc\ub97c \uc704\ud574 \uc9c4\ud589\ud558\uc600\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc0ac\uace0\ub97c \ubc29\uc9c0\ud558\uae30 \uc704\ud55c \uc9c4\ud589 \uc804 \ubc31\uc5c5 \ud544\uc218.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc808\ucc28<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ub370\uc774\ud130\ubca0\uc774\uc2a4 \ucf5c\ub808\uc774\uc158 \uc5c5\ub370\uc774\ud2b8<\/h3>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>sudo su - postgres\npsql mastodon_production\nALTER DATABASE mastodon_production REFRESH COLLATION VERSION;\nREINDEX DATABASE mastodon_production;\npsql template1\nALTER DATABASE template1 REFRESH COLLATION VERSION;\nREINDEX DATABASE template1;\npsql postgres\nALTER DATABASE postgres REFRESH COLLATION VERSION;\nREINDEX DATABASE postgres;\nexit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">REINDEX\ub294 \ud544\uc218\uac00 \uc544\ub2c8\uace0, \uba54\ubaa8\ub9ac\uc640 \uc2a4\ud1a0\ub9ac\uc9c0\ub97c \uc0ac\uc6a9\ud558\ubbc0\ub85c \uc6a9\ub7c9\uc5d0 \uc8fc\uc758\ud55c\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc815\uc9c0<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\uc5c5\uadf8\ub808\uc774\ub4dc \uc0ac\uc804 \ud655\uc778 \ud6c4 \uc9c4\ud589<\/h3>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>sudo su - postgres\n\/usr\/lib\/postgresql\/16\/bin\/pg_upgrade \\\n  --old-datadir=\/var\/lib\/postgresql\/15\/main \\\n  --new-datadir=\/var\/lib\/postgresql\/16\/main \\\n  --old-bindir=\/usr\/lib\/postgresql\/15\/bin \\\n  --new-bindir=\/usr\/lib\/postgresql\/16\/bin \\\n  --old-options '-c config_file=\/etc\/postgresql\/15\/main\/postgresql.conf' \\\n  --new-options '-c config_file=\/etc\/postgresql\/16\/main\/postgresql.conf' \\\n  --check\nexit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc0ac\uc804 \ud655\uc778 \ubb38\uc81c \uc5c6\uc73c\uba74 &#8211;check \uc81c\uac70\ud558\uc5ec \uc5c5\uadf8\ub808\uc774\ub4dc \uc9c4\ud589\ud55c\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud3ec\ud2b8 \uad6c\uc131 \uc2a4\uc651 \ubc0f \uae30\uc874 \uad6c\uc131 \ub9c8\uc774\uadf8\ub808\uc774\uc158<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\/etc\/postgresql\/15\/main\/postgresql.conf<\/li>\n\n\n\n<li>\/etc\/postgresql\/16\/main\/postgresql.conf<\/li>\n\n\n\n<li>\/etc\/postgresql\/16\/main\/pg_hba.conf<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc2dc\uc791<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\uccad\uc18c <\/h3>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>sudo su - postgres\n\/usr\/lib\/postgresql\/15\/bin\/vacuumdb --all --analyze-in-stages\nexit\nsudo apt remove postgresql-15\nsudo rm -rf \/etc\/postgresql\/15\/\nsudo su - postgres\n.\/delete_old_cluster.sh\nexit<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uac1c\uc694 Mastodon \ub2e8\ub3c5 \uc6a9\ub3c4\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5c5\uadf8\ub808\uc774\ub4dc\ub97c \uc704\ud574 \uc9c4\ud589\ud558\uc600\ub2e4. \uc0ac\uace0\ub97c \ubc29\uc9c0\ud558\uae30 \uc704\ud55c \uc9c4\ud589 \uc804 \ubc31\uc5c5 \ud544\uc218. \uc808\ucc28 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ucf5c\ub808\uc774\uc158 \uc5c5\ub370\uc774\ud2b8 REINDEX\ub294 \ud544\uc218\uac00 \uc544\ub2c8\uace0, \uba54\ubaa8\ub9ac\uc640 \uc2a4\ud1a0\ub9ac\uc9c0\ub97c \uc0ac\uc6a9\ud558\ubbc0\ub85c \uc6a9\ub7c9\uc5d0 \uc8fc\uc758\ud55c\ub2e4. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc815\uc9c0 \uc5c5\uadf8\ub808\uc774\ub4dc \uc0ac\uc804 \ud655\uc778 \ud6c4 \uc9c4\ud589 \uc0ac\uc804 \ud655\uc778 \ubb38\uc81c \uc5c6\uc73c\uba74 &#8211;check \uc81c\uac70\ud558\uc5ec \uc5c5\uadf8\ub808\uc774\ub4dc \uc9c4\ud589\ud55c\ub2e4. \ud3ec\ud2b8 \uad6c\uc131 \uc2a4\uc651 \ubc0f \uae30\uc874 \uad6c\uc131 \ub9c8\uc774\uadf8\ub808\uc774\uc158 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc2dc\uc791 \uccad\uc18c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[294,295,292,293],"class_list":["post-1189","post","type-post","status-publish","format-standard","hentry","category-description","tag-database","tag-mastoadmin","tag-mastodon","tag-postgresql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6odUX-jb","jetpack-related-posts":[{"id":303,"url":"https:\/\/wp.netspheres.org\/fow\/archives\/303","url_meta":{"origin":1189,"position":0},"title":"[Intercept X] Cryptoguard \uc0ac\uc6a9 \uc2dc Calibre Library \uc0ac\uc6a9\uc774 \ubd88\uac00\ub2a5\ud574\uc9c0\ub294 \ubb38\uc81c","author":"FoW","date":"2019-04-11","format":false,"excerpt":"\uc774 \ubb38\uc81c\ub294 \ube44\uc988\ub2c8\uc2a4\uc640 \ucee8\uc288\uba38 \ubaa8\ub450\uc5d0\uac8c \ub098\ud0c0\ub098\ub294 Hitman Pro\uc758 Cryptoguard \uc5d4\uc9c4\uc758 \uace0\uc720\ud55c \ubb38\uc81c\uc774\ub2e4. Sophos\ub294 \ubb3c\ub860 \ud589\uc704\uae30\ubc18\ud0d0\uc9c0 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\ub294 \ub300\ub2e4\uc218\uc758 \ud0d1 \ud2f0\uc5b4 \ubca4\ub354\uc5d0\uc11c \ubaa8\ub450 \ub098\ud0c0\ub09c\ub2e4. \ud574\uacb0 (2019-10-25) Sophos\uc758 \uacbd\uc6b0, \uc6f9\uc720\uc544\uc774\uc758 \ubc14\uc774\ub108\ub9ac \ub2e8\uc704 \uc608\uc678 \ucc98\ub9ac\ub294 \ubd88\uac00\ub2a5\ud558\ubbc0\ub85c, \ub85c\uceec \ub808\uc9c0\uc2a4\ud2b8\ub9ac\uc5d0 \uc608\uc678 \ub300\uc0c1\uc744 \ub4f1\ub85d\ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4. Download the .zip fileUnzip itDisable Tamper protectionDouble-click the .reg file and\u2026","rel":"","context":"&quot;Essay&quot;\uc5d0\uc11c","block_context":{"text":"Essay","link":"https:\/\/wp.netspheres.org\/fow\/archives\/category\/essay"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2019\/04\/%EC%A3%BC%EC%84%9D-2019-04-10-211348.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":19,"url":"https:\/\/wp.netspheres.org\/fow\/archives\/19","url_meta":{"origin":1189,"position":1},"title":"WSS 3.0 Installation Guide (Single Server)","author":"FoW","date":"2007-04-07","format":false,"excerpt":"AD\uc62c\ub9ac\uae30\ub294 \uae30\ubcf8. \ub2e4\uc74c\uc73c\ub85c\u2026\u2026. [#M_ more.. | less.. |Single-Tier Implementation (Single Server)[footnote]Windows SharePoint Services 3.0 Evaluation Guide: Microsoft. P. 23[\/footnote] For a small business or departmental group you can deploy Windows SharePoint Services on a single server. This configuration can utilize either SQL Server 2005 Express (SSE) or SQL Server 2005\u2026","rel":"","context":"\"Windows SharePoint Services\"\uc5d0\uc11c","block_context":{"text":"Windows SharePoint Services","link":"https:\/\/wp.netspheres.org\/fow\/archives\/tag\/windows-sharepoint-services"},"img":{"alt_text":"Figure 2. Single Server Architecture","src":"https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2007\/09\/1384302441.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":702,"url":"https:\/\/wp.netspheres.org\/fow\/archives\/702","url_meta":{"origin":1189,"position":2},"title":"[Sophos Home] Calibre Library \uc608\uc678 \ucc98\ub9ac","author":"FoW","date":"2021-06-09","format":false,"excerpt":"Sophos Cloud\uc758 \uac1c\uc778\uc6a9 \uc81c\ud488\uc778 Sophos Home \ub610\ud55c \ucde8\uc57d\uc810 \ubc29\uc5b4\ub97c \uc81c\uacf5\ud558\ub294\ub370, \uc708\ub3c4\uc6b0\uc758 \ud30c\uc774\uc36c \ub3d9\uc791 \uc624\ud0d0\uc5d0 \uc885\uc885 \uc624\ub958\uac00 \uc788\ub2e4. \uc774\uc804\uc5d0\ub3c4 Intercept X \uc5d0\uc11c \uc774\uc57c\uae30 \ud558\uc600\ub2e4. \uc774\ub7ec\ud55c \uacbd\uc6b0, Support Request \uc9c4\ud589\ud558\uc5ec\uc57c\ub9cc \uc608\uc678 \uac00\ub2a5\ud558\ub2e4. \ub808\uc9c0\uc2a4\ud2b8\ub9ac \ud30c\uc77c\uc744 \uc8fc\ub294\ub370, \ud754\ud55c \uc77c\ubc18 \uc571\uc774\ubbc0\ub85c \ud30c\uc77c\uc744 \ucca8\ubd80\ud55c\ub2e4. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SOFTWARE\\HitmanPro.Alert] \"UserThumbprints\"=hex(7):37,00,64,00,63,00,35,00,65,00,32,00,64,00,35,00,37,00,\\ 66,00,32,00,33,00,38,00,37,00,63,00,61,00,34,00,38,00,62,00,62,00,37,00,38,\\ 00,61,00,66,00,64,00,61,00,30,00,39,00,32,00,38,00,36,00,64,00,33,00,61,00,\\ 63,00,34,00,32,00,65,00,66,00,64,00,63,00,61,00,31,00,31,00,35,00,66,00,64,\\ 00,62,00,36,00,65,00,32,00,34,00,33,00,30,00,35,00,39,00,61,00,34,00,39,00,\\ 63,00,38,00,35,00,62,00,66,00,00,00,00,00\u2026","rel":"","context":"&quot;Description&quot;\uc5d0\uc11c","block_context":{"text":"Description","link":"https:\/\/wp.netspheres.org\/fow\/archives\/category\/description"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2021\/06\/%E1%84%92%E1%85%AA%E1%84%86%E1%85%A7%E1%86%AB-%E1%84%8F%E1%85%A2%E1%86%B8%E1%84%8E%E1%85%A5-2021-06-09-093140.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2021\/06\/%E1%84%92%E1%85%AA%E1%84%86%E1%85%A7%E1%86%AB-%E1%84%8F%E1%85%A2%E1%86%B8%E1%84%8E%E1%85%A5-2021-06-09-093140.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2021\/06\/%E1%84%92%E1%85%AA%E1%84%86%E1%85%A7%E1%86%AB-%E1%84%8F%E1%85%A2%E1%86%B8%E1%84%8E%E1%85%A5-2021-06-09-093140.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/wp.netspheres.org\/fow\/wp-content\/uploads\/sites\/2\/2021\/06\/%E1%84%92%E1%85%AA%E1%84%86%E1%85%A7%E1%86%AB-%E1%84%8F%E1%85%A2%E1%86%B8%E1%84%8E%E1%85%A5-2021-06-09-093140.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/posts\/1189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/comments?post=1189"}],"version-history":[{"count":5,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/posts\/1189\/revisions"}],"predecessor-version":[{"id":1194,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/posts\/1189\/revisions\/1194"}],"wp:attachment":[{"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/media?parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/categories?post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.netspheres.org\/fow\/wp-json\/wp\/v2\/tags?post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}