<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fragility &#187; postgresql</title>
	<atom:link href="http://fragility.us/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://fragility.us</link>
	<description></description>
	<lastBuildDate>Tue, 26 Apr 2011 22:02:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using PostgreSQL with WordPress</title>
		<link>http://fragility.us/2010/07/using-postgresql-with-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-postgresql-with-wordpress</link>
		<comments>http://fragility.us/2010/07/using-postgresql-with-wordpress/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 21:27:13 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://fragility.us/2010/07/23/using-postgresql-with-wordpress</guid>
		<description><![CDATA[This site has been using PostgreSQL as a back end for WordPress since the beginning.  This is possible with a nice little plugin PG4WP that will translate queries on the fly into something that PostgreSQL can understand. I&#8217;m a big &#8230; <a href="http://fragility.us/2010/07/using-postgresql-with-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This site has been using PostgreSQL as a back end for WordPress since the beginning.  This is possible with a nice little plugin <a href="http://wordpress.org/extend/plugins/postgresql-for-wordpress/">PG4WP</a> that will translate queries on the fly into something that PostgreSQL can understand.</p>
<p>I&#8217;m a big fan of PostgreSQL and use it on almost every project I do.  There is something about setting up a MySQL instance and managing it that bothers me, so this plugin makes my day.</p>
<p>I have pushed a copy of the plugin to <a href="http://github.com/fragility/pg4wp">GitHub</a> so that I can keep track of tweaks I make to it as I find compatibility problems.  I am now running WordPress 3.0 and am monitoring my logs for database errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://fragility.us/2010/07/using-postgresql-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing PostgreSQL on Mac OS X</title>
		<link>http://fragility.us/2009/03/installing-postgresql-on-mac-os-x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-postgresql-on-mac-os-x</link>
		<comments>http://fragility.us/2009/03/installing-postgresql-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 21:38:31 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://test.fragility.us/?p=14</guid>
		<description><![CDATA[Here is what I did to get PostgreSQL and the postgres ruby gem installed on Mac OS X Leopard.  This post is more for my personal reference, but if anyone finds it useful, so be it.  There are other posts around that deal with the same issue, but I've not found one that has the complete picture. <a href="http://fragility.us/2009/03/installing-postgresql-on-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is what I did to get PostgreSQL and the pg ruby gem installed on Mac OS X Leopard.  This post is more for my personal reference, but if anyone finds it useful, so be it.  There are other posts around that deal with the same issue, but I&#8217;ve not found one that has the complete picture.</p>
<h2>Prerequisites</h2>
<p>I&#8217;m using the Ruby and RubyGems that come installed with Leopard.</p>
<p>You will need to install the following first:</p>
<ul>
<li><a href="http://developer.apple.com/tools/">XCode Developer Tools</a></li>
<li><a href="http://www.macports.org/">MacPorts</a></li>
</ul>
<h2>Installing PostgreSQL</h2>
<p>Install PostgreSQL from MacPorts using the following command in your Terminal:</p>
<pre class="brush:bash">sudo port install postgresql84 postgresql84-server</pre>
<p>Make sure to follow the instructions printed at the end of the installation, so that you can set up PostgreSQL to start automatically.</p>
<h2>Installing pg Gem</h2>
<p><strong>Update</strong>: The &#8220;pg&#8221; gem is considered the most current of those that provide a PostgreSQL access layer.  I previously mentioned the &#8220;postgres&#8221; gem.</p>
<p>This is the part that might trip you up if you try the standard <code>gem install pg</code> route.  There are two ways to ensure that this works.</p>
<p>The first is to ensure that the directory containing PostgreSQL executables (notably pg_config) is in your PATH.  You can add the following to /etc/profile:</p>
<pre class="brush:bash">export PATH=/opt/local/lib/postgresql84/bin:$PATH</pre>
<p>Then run <code>sudo gem install pg</code> as usual.</p>
<p>If you do not modify your PATH, use the following in your Terminal instead so that the PostgreSQL headers and libraries are found:</p>
<pre class="brush:bash">sudo env ARCHFLAGS="-arch i386"
  gem install pg --
  --with-pgsql-include=/opt/local/include/postgresql84
  --with-pgsql-lib=/opt/local/lib/postgresql84</pre>
<p><strong>Update:</strong> On Mac OS X 10.6 Snow Leopard, you may need to use &#8220;x86_64&#8243; instead of &#8220;i386&#8243; in the above command.</p>
<p>I hope that&#8217;s the full story&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://fragility.us/2009/03/installing-postgresql-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

