<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pgsql on Evan Hoffman</title><link>https://evan.wtf/tags/pgsql/</link><description>Recent content in Pgsql on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Wed, 12 Feb 2014 11:06:07 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/pgsql/index.xml" rel="self" type="application/rss+xml"/><item><title>Setting user Postgres passwords via MD5</title><link>https://evan.wtf/2014/02/12/setting-user-postgres-passwords-via-md5/</link><pubDate>Wed, 12 Feb 2014 11:06:07 +0000</pubDate><guid>https://evan.wtf/2014/02/12/setting-user-postgres-passwords-via-md5/</guid><description>&lt;p&gt;Say you want to create a Postgres account for a user but you don&amp;rsquo;t want them to have to reset it after logging in, and you don&amp;rsquo;t want to do the &amp;ldquo;come type in a password on my computer&amp;rdquo; routine. Well, here&amp;rsquo;s one way around this.&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Have the user generate an MD5 of their password on their local computer. Postgres uses the username as the salt for the hash, so the command to generate the md5 on a Mac would be (assuming a username of &amp;rsquo;ehoffman&amp;rsquo; and a password of &amp;lsquo;abcdefg&amp;rsquo;):&lt;/p&gt;</description></item><item><title>Migrating RT from mysql to postgresql.</title><link>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</link><pubDate>Thu, 06 Aug 2009 17:21:42 +0000</pubDate><guid>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</guid><description>&lt;p&gt;So I wanted to move our old RT 3.6 system to a new VM running a clean CentOS 5.3 x86 install and RT 3.8. I got RT installed but the 3.6 system was running on MySQL, which sucks (still), and I wanted to move it to Postgres, which rules (more and more each day). So Googling for &amp;ldquo;migrate rt from mysql to postgresql&amp;rdquo; brought me &lt;a href="http://himdel.blogspot.com/2009/04/migrating-request-tracker-from-rt-345.html"&gt;here&lt;/a&gt;. I tried the procedure listed there but it wasn&amp;rsquo;t quite working for me. my2pg.pl and mysql2postgresql.perl both caused segfaults when I tried to run them. I realized I was on my own, and it wasn&amp;rsquo;t really that bad.&lt;/p&gt;</description></item></channel></rss>