{"id":4461,"date":"2018-10-30T21:38:17","date_gmt":"2018-10-30T21:38:17","guid":{"rendered":"https:\/\/dbtut.com\/?p=4461"},"modified":"2019-03-28T07:20:08","modified_gmt":"2019-03-28T07:20:08","slug":"upgrade-postgresql-10-to-11","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/","title":{"rendered":"UPGRADE POSTGRESQL 10 To 11"},"content":{"rendered":"<p>We will upgrade POSTGRESQL 10 To 11 on CENTOS in this article. Before I start the upgrade process, I want to make the following critical warning:<\/p>\n<p>You will need to re-configure your postgresql.conf and pg_hba.conf files. Because the files will be reset after upgrade.<\/p>\n<h2>Install PostgreSQL 11<\/h2>\n<p>We are installing\u00a0Postgresql 11 with the following commands.<\/p>\n<pre class=\"lang:default decode:true\">[root@postgres eng]# yum install https:\/\/download.postgresql.org\/pub\/repos\/yum\/11\/redhat\/rhel-7-x86_64\/pgdg-centos11-11-2.noarch.rpm\n\n[root@postgres eng]# yum install postgresql11\n\n[root@postgres eng]# yum install postgresql11-server<\/pre>\n<h2>initdb<\/h2>\n<p>We are performing the initdb operation in the Postgresql 11 database.<\/p>\n<pre class=\"lang:default decode:true\">[root@postgres eng]# \/usr\/pgsql-11\/bin\/postgresql-11-setup initdb\nInitializing database \u2026 OK<\/pre>\n<h2>Checking Whether the Upgrade is Applicable<\/h2>\n<p>We check the applicability of the upgrade with the command below. (with postgresql user)<\/p>\n<pre class=\"lang:default decode:true\">-bash-4.2$ \/usr\/pgsql-1\/bin\/pg_upgrade \u2013old-bindir=\/usr\/pgsql-10\/bin\/ \u2013new-bindir=\/usr\/pgsql-11\/bin\/ \u2013old-datadir=\/var\/lib\/pgsql\/10\/data \u2013new-datadir=\/var\/lib\/pgsql\/11\/data \u2013check\npgsql-10\/ pgsql-11\/\u00a0\n-bash-4.2$ \/usr\/pgsql-11\/bin\/pg_upgrade \u2013old-bindir=\/usr\/pgsql-10\/bin\/ \u2013new-bindir=\/usr\/pgsql-11\/bin\/ \u2013old-datadir=\/var\/lib\/pgsql\/10\/data \u2013new-datadir=\/var\/lib\/pgsql\/11\/data \u2013check\nPerforming Consistency Checks on Old Live Server\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\nChecking cluster versions ok\nChecking database user is the install user ok\nChecking database connection settings ok\nChecking for prepared transactions ok\nChecking for reg* data types in user tables ok\nChecking for contrib\/isn with bigint-passing mismatch ok\nChecking for presence of required libraries ok\nChecking database user is the install user ok\nChecking for prepared transactions ok\n\n*Clusters are compatible*<\/pre>\n<h2>Stop PostgreSQL 10<\/h2>\n<p>If we perform the upgrade without stopping Postgresql 10, we get the following error.<\/p>\n<pre class=\"lang:default decode:true\">-bash-4.2$ \/usr\/pgsql-11\/bin\/pg_upgrade \u2013old-bindir=\/usr\/pgsql-10\/bin\/ \u2013new-bindir=\/usr\/pgsql-11\/bin\/ \u2013old-datadir=\/var\/lib\/pgsql\/10\/data \u2013new-datadir=\/var\/lib\/pgsql\/11\/data\n\nThere seems to be a postmaster servicing the old cluster.\nPlease shutdown that postmaster and try again.\nFailure, exiting\n-bash-4.2$ logout\n[root@postgres eng]# systemctl stop postgresql-10.service<\/pre>\n<p>We are stopping Postgresql 10 (with root user)<\/p>\n<pre class=\"lang:default decode:true\">[root@postgres eng]# systemctl stop postgresql-10.service<\/pre>\n<h2>Upgrade<\/h2>\n<p>Then we switch to postgres user and run the upgrade command.(with Postgres user)<\/p>\n<pre class=\"lang:default decode:true\">-bash-4.2$ \/usr\/pgsql-11\/bin\/pg_upgrade \u2013old-bindir=\/usr\/pgsql-10\/bin\/ \u2013new-bindir=\/usr\/pgsql-11\/bin\/ \u2013old-datadir=\/var\/lib\/pgsql\/10\/data \u2013new-datadir=\/var\/lib\/pgsql\/11\/data\u00a0\nPerforming Consistency Checks\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\nChecking cluster versions ok\nChecking database user is the install user ok\nChecking database connection settings ok\nChecking for prepared transactions ok\nChecking for reg* data types in user tables ok\nChecking for contrib\/isn with bigint-passing mismatch ok\nCreating dump of global objects ok\nCreating dump of database schemas\nok\nChecking for presence of required libraries ok\nChecking database user is the install user ok\nChecking for prepared transactions ok\n\nIf pg_upgrade fails after this point, you must re-initdb the\nnew cluster before continuing.\n\nPerforming Upgrade\n\u2014\u2014\u2014\u2014\u2014\u2014\nAnalyzing all rows in the new cluster ok\nFreezing all rows in the new cluster ok\nDeleting files from new pg_xact ok\nCopying old pg_xact to new server ok\nSetting next transaction ID and epoch for new cluster ok\nDeleting files from new pg_multixact\/offsets ok\nCopying old pg_multixact\/offsets to new server ok\nDeleting files from new pg_multixact\/members ok\nCopying old pg_multixact\/members to new server ok\nSetting next multixact ID and offset for new cluster ok\nResetting WAL archives ok\nSetting frozenxid and minmxid counters in new cluster ok\nRestoring global objects in the new cluster ok\nRestoring database schemas in the new cluster\nok\nCopying user relation files\nok\nSetting next OID for new cluster ok\nSync data directory to disk ok\nCreating script to analyze new cluster ok\nCreating script to delete old cluster ok\n\nUpgrade Complete\n\u2014\u2014\u2014\u2014\u2014-\nOptimizer statistics are not transferred by pg_upgrade so,\nonce you start the new server, consider running:\n.\/analyze_new_cluster.sh\n\nRunning this script will delete the old cluster\u2019s data files:\n.\/delete_old_cluster.sh\n-bash-4.2$<\/pre>\n<p>We are running the following commands before executing the commands requested from us.<\/p>\n<pre class=\"lang:default decode:true\">[root@postgres eng]# systemctl enable postgresql-11.service\u00a0\n\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/postgresql-11.service to \/usr\/lib\/systemd\/system\/postgresql-11.service.\n\n[root@postgres eng]# systemctl start postgresql-11.service<\/pre>\n<p>Then we run the commands requested from us.<\/p>\n<pre class=\"lang:default decode:true\">-bash-4.2$ .\/analyze_new_cluster.sh\nThis script will generate minimal optimizer statistics rapidly\nso your system is usable, and then gather statistics twice more\nwith increasing accuracy. When it is done, your system will\nhave the default level of optimizer statistics.\n\nIf you have used ALTER TABLE to modify the statistics target for\nany tables, you might want to remove them and restore them after\nrunning this script because they will delay fast statistics generation.\n\nIf you would like default statistics as quickly as possible, cancel\nthis script and run:\n\u201c\/usr\/pgsql-11\/bin\/vacuumdb\u201d \u2013all \u2013analyze-only\n\nvacuumdb: processing database \u201cpostgres\u201d: Generating minimal optimizer statistics (1 target)\nvacuumdb: processing database \u201ctemplate1\u201d: Generating minimal optimizer statistics (1 target)\nvacuumdb: processing database \u201cpostgres\u201d: Generating medium optimizer statistics (10 targets)\nvacuumdb: processing database \u201ctemplate1\u201d: Generating medium optimizer statistics (10 targets)\nvacuumdb: processing database \u201cpostgres\u201d: Generating default (full) optimizer statistics\nvacuumdb: processing database \u201ctemplate1\u201d: Generating default (full) optimizer statistics\n\nDone\n<\/pre>\n<h2>Delete Old Cluster<\/h2>\n<p>Then run the below command. But, be aware that this command delete old cluster. Thats why, be sure that postgresql 11 is working before delete the old cluster.<\/p>\n<pre class=\"lang:default decode:true\">-bash-4.2$ .\/delete_old_cluster.sh<\/pre>\n<p>We remove all packages related to Postgresql10. (with root user)<\/p>\n<pre class=\"lang:default decode:true\">[root@postgres eng]# rpm -qa | grep postgresql\n\nyum remove\u00a0postgresql10-10.5-1PGDG.rhel7.x86_64\n\nyum remove\u00a0\u00a0postgresql10-libs-10.5-1PGDG.rhel7.x86_64<\/pre>\n<p>Upgrade has completed. You can connect to the database and see version 11.<\/p>\n<pre class=\"lang:default decode:true \">-bash-4.2$ psql\n\npsql (11.0)\n\nType \u201chelp\u201d for help.\n\npostgres=#<\/pre>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4461\" class=\"pvc_stats all  \" data-element-id=\"4461\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We will upgrade POSTGRESQL 10 To 11 on CENTOS in this article. Before I start the upgrade process, I want to make the following critical warning: You will need to re-configure your postgresql.conf and pg_hba.conf files. Because the files will be reset after upgrade. Install PostgreSQL 11 We are installing\u00a0Postgresql 11 with the following commands. &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4461\" class=\"pvc_stats all  \" data-element-id=\"4461\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":316,"featured_media":11146,"comment_status":"open","ping_status":"open","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":[5],"tags":[2265,2922,2923,2924],"class_list":["post-4461","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-postgres","tag-could-not-write-to-log-file-pg_upgrade_internal-log","tag-upgrade-postgresql","tag-upgrade-postgresql-centos","tag-upgrade-to-postgres-11"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UPGRADE POSTGRESQL 10 To 11 - Database Tutorials<\/title>\n<meta name=\"description\" content=\"UPGRADE POSTGRESQL 10 TO 11\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UPGRADE POSTGRESQL 10 To 11 - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"UPGRADE POSTGRESQL 10 TO 11\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-30T21:38:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-28T07:20:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"570\" \/>\n\t<meta property=\"og:image:height\" content=\"324\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Engin Yilmaz\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Engin Yilmaz\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\"},\"author\":{\"name\":\"Engin Yilmaz\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/b1a386d05873bd038726ab40496e458a\"},\"headline\":\"UPGRADE POSTGRESQL 10 To 11\",\"datePublished\":\"2018-10-30T21:38:17+00:00\",\"dateModified\":\"2019-03-28T07:20:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\"},\"wordCount\":202,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png\",\"keywords\":[\"could not write to log file \u201cpg_upgrade_internal.log\u201d\",\"Upgrade PostgreSQL\",\"upgrade postgresql centos\",\"upgrade to postgres 11\"],\"articleSection\":[\"PostgreSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\",\"name\":\"UPGRADE POSTGRESQL 10 To 11 - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png\",\"datePublished\":\"2018-10-30T21:38:17+00:00\",\"dateModified\":\"2019-03-28T07:20:08+00:00\",\"description\":\"UPGRADE POSTGRESQL 10 TO 11\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png\",\"width\":570,\"height\":324},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UPGRADE POSTGRESQL 10 To 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/b1a386d05873bd038726ab40496e458a\",\"name\":\"Engin Yilmaz\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1beca465a583c4518bafb41d560f2c385f15b4c6810b4c396204e58fb07520ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1beca465a583c4518bafb41d560f2c385f15b4c6810b4c396204e58fb07520ea?s=96&d=mm&r=g\",\"caption\":\"Engin Yilmaz\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/enginyilmaz\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UPGRADE POSTGRESQL 10 To 11 - Database Tutorials","description":"UPGRADE POSTGRESQL 10 TO 11","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:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/","og_locale":"en_US","og_type":"article","og_title":"UPGRADE POSTGRESQL 10 To 11 - Database Tutorials","og_description":"UPGRADE POSTGRESQL 10 TO 11","og_url":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/","og_site_name":"Database Tutorials","article_published_time":"2018-10-30T21:38:17+00:00","article_modified_time":"2019-03-28T07:20:08+00:00","og_image":[{"width":570,"height":324,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png","type":"image\/png"}],"author":"Engin Yilmaz","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Engin Yilmaz","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/"},"author":{"name":"Engin Yilmaz","@id":"https:\/\/dbtut.com\/#\/schema\/person\/b1a386d05873bd038726ab40496e458a"},"headline":"UPGRADE POSTGRESQL 10 To 11","datePublished":"2018-10-30T21:38:17+00:00","dateModified":"2019-03-28T07:20:08+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/"},"wordCount":202,"commentCount":4,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png","keywords":["could not write to log file \u201cpg_upgrade_internal.log\u201d","Upgrade PostgreSQL","upgrade postgresql centos","upgrade to postgres 11"],"articleSection":["PostgreSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/","url":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/","name":"UPGRADE POSTGRESQL 10 To 11 - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png","datePublished":"2018-10-30T21:38:17+00:00","dateModified":"2019-03-28T07:20:08+00:00","description":"UPGRADE POSTGRESQL 10 TO 11","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-5.png","width":570,"height":324},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/30\/upgrade-postgresql-10-to-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"UPGRADE POSTGRESQL 10 To 11"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/b1a386d05873bd038726ab40496e458a","name":"Engin Yilmaz","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1beca465a583c4518bafb41d560f2c385f15b4c6810b4c396204e58fb07520ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1beca465a583c4518bafb41d560f2c385f15b4c6810b4c396204e58fb07520ea?s=96&d=mm&r=g","caption":"Engin Yilmaz"},"url":"https:\/\/dbtut.com\/index.php\/author\/enginyilmaz\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/4461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/316"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=4461"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/4461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/11146"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=4461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=4461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=4461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}