<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Postgresql on Yang's Blog</title><link>https://blog.yangtheman.com/tags/postgresql/</link><description>Recent content in Postgresql on Yang's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Yang Chung</copyright><lastBuildDate>Fri, 18 Nov 2011 09:53:34 +0000</lastBuildDate><atom:link href="https://blog.yangtheman.com/tags/postgresql/index.xml" rel="self" type="application/rss+xml"/><item><title>Fresh installation of Ruby, Rails, Git, RubyGems, and Postgresql 8.x</title><link>https://blog.yangtheman.com/2011/11/18/resources-for-fresh-installation-of-git-rubygems-postgresql-8-x-and-ruby-on-rails/</link><pubDate>Fri, 18 Nov 2011 09:53:34 +0000</pubDate><guid>https://blog.yangtheman.com/2011/11/18/resources-for-fresh-installation-of-git-rubygems-postgresql-8-x-and-ruby-on-rails/</guid><description/></item><item><title>How to convert from MySQL to Postgres</title><link>https://blog.yangtheman.com/2010/01/30/how-to-convert-from-mysql-to-postgres/</link><pubDate>Sat, 30 Jan 2010 07:55:21 +0000</pubDate><guid>https://blog.yangtheman.com/2010/01/30/how-to-convert-from-mysql-to-postgres/</guid><description>&lt;p&gt;I have been using MySQL for probably as long as I could remember. For &lt;a href="http://www.bloglation.com" target="_blank" rel="noreferrer"&gt;Bloglation&lt;/a&gt;, search capability is an important feature since it&amp;rsquo;s hard to browse each post one by one. I will probably implement tagging functionality, but even so, it&amp;rsquo;s important to be able to search the contents with a keyword(s). While Ultrasphinx works well, Heroku only supports WebSolr&amp;hellip; I was using acts_as_ferret using /tmp for index files, but the problem using the /tmp directory is that ferret index files most likely to disappear at some point.&lt;/p&gt;
&lt;p&gt;Then, I found out that Postgres supports full-text search and since Heroku uses Postgres, I could use other plug-ins like &lt;a href="http://code.google.com/p/acts-as-tsearch/" target="_blank" rel="noreferrer"&gt;acts_as_tsearch&lt;/a&gt; or &lt;a href="http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/comment-page-1/" target="_blank" rel="noreferrer"&gt;texticle&lt;/a&gt; for free. Free is important to me, since it&amp;rsquo;s not making any money.&lt;/p&gt;
&lt;p&gt;Searching online, there are various ways to do it like &lt;a href="http://pivotallabs.com/users/jpignata/blog/articles/1077-converting-rails-application-data-from-mysql-to-postgresql" target="_blank" rel="noreferrer"&gt;Pivotal Labs&amp;rsquo; script&lt;/a&gt; or &lt;a href="http://adam.blog.heroku.com/past/2009/2/11/taps_for_easy_database_transfers/" target="_blank" rel="noreferrer"&gt;Heroku&amp;rsquo;s Taps gem&lt;/a&gt;, but I wanted to do it in an old way like &lt;a href="http://blog.aedifice.org/2009/09/08/converting-rails-applications-from-mysql-to-postgresql" target="_blank" rel="noreferrer"&gt;AEdifice&lt;/a&gt; to check everything is going alright at each step. &lt;strong&gt;1. First thing to do is to backup MySQL&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For me, it was important to backup preserving encoding, since it had many different languages. First I pulled db from Heroku thinking that I&lt;/p&gt;</description></item></channel></rss>