{"id":34688,"date":"2021-06-10T04:47:32","date_gmt":"2021-06-10T04:47:32","guid":{"rendered":"https:\/\/ittutorial.org\/?p=34688"},"modified":"2021-06-10T04:47:32","modified_gmt":"2021-06-10T04:47:32","slug":"change-postgresql-database-encoding","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/change-postgresql-database-encoding\/","title":{"rendered":"Change PostgreSql database encoding"},"content":{"rendered":"<p>Hello there ,<br \/>\nchange PostgreSql database encoding<\/p>\n<p>Rename database with old encoding<\/p>\n<p>alter database test RENAME to test_old;<\/p>\n<p>Create database with new encoding<\/p>\n<p>CREATE DATABASE test ENCODING=&#8217;UTF-8&#8242; LC_COLLATE = &#8216;tr_TR.UTF-8&#8242; LC_CTYPE=&#8217;tr_TR.UTF-8&#8217; TEMPLATE template0;<\/p>\n<p>Set new database owner<\/p>\n<p>alter database test OWNER to test_user;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello there , change PostgreSql database encoding Rename database with old encoding alter database test RENAME to test_old; Create database with new encoding CREATE DATABASE test ENCODING=&#8217;UTF-8&#8242; LC_COLLATE = &#8216;tr_TR.UTF-8&#8242; LC_CTYPE=&#8217;tr_TR.UTF-8&#8217; TEMPLATE template0; Set new database owner alter database test OWNER to test_user; &nbsp;<\/p>\n","protected":false},"author":36,"featured_media":0,"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,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3896],"tags":[],"class_list":["post-34688","post","type-post","status-publish","format-standard","","category-postgresql"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=34688"}],"version-history":[{"count":1,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34688\/revisions"}],"predecessor-version":[{"id":34689,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34688\/revisions\/34689"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=34688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=34688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=34688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}