<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5734322723256989244</id><updated>2024-08-29T03:53:06.884+01:00</updated><category term="PostgreSQL"/><category term="gym"/><category term="personal"/><category term="pg_hba.conf"/><category term="AIX"/><category term="Bucardo"/><category term="C"/><category term="C++"/><category term="DR"/><category term="Development against production databases"/><category term="Linux"/><category term="MSSQL"/><category term="Nagios"/><category term="Perl"/><category term="PostgreSQL 9"/><category term="PowerPC"/><category term="RHEL"/><category term="Technical"/><category term="install"/><category term="misc"/><category term="nightshift"/><category term="pg_standby"/><category term="plpgsql"/><category term="postgresql.conf"/><category term="rant"/><category term="replication"/><category term="scp"/><category term="shell scripting"/><category term="source code"/><category term="voodoo"/><category term="warm standby"/><category term="welcome"/><category term="working from home"/><category term="xlc"/><category term="yum"/><title type='text'>Postgres and I</title><subtitle type='html'>A blog for me to jot down the PostgreSQL bits and pieces I may want to remember in the future!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-751758275621241171</id><published>2011-09-07T07:44:00.000+01:00</published><updated>2011-09-07T07:44:34.324+01:00</updated><title type='text'>SQLServer 2000 Error</title><content type='html'>So this was a nasty little surprise I got from MS SQL Server 2000 after multiple batch job failures...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;SqlDumpExceptionHandler: Process 83 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process..&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* *******************************************************************************&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* BEGIN STACK DUMP:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; 09/05/11 08:53:10 spid 83&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; Exception Address = 10029D26&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; Exception Code &amp;nbsp; &amp;nbsp;= c0000005 EXCEPTION_ACCESS_VIOLATION&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; Access Violation occurred writing address 00000000&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* Input Buffer 740 bytes -&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;BEGIN TRANSACTION &amp;nbsp;DROP TABLE branch_stocktake.dbo.postgres_desc_1; &amp;nbsp;SEL&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;ECT * INTO branch_stocktake.dbo.postgres_desc_1 FROM OPENQUERY([MONAR],&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;&#39;SELECT stockno, stkgroup, description FROM mssql_import.postgres_descri&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;ptions limit 500000&#39;); &amp;nbsp;ALTER TABLE branch_stocktake.dbo.postgres_desc_1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; ALTER COLUMN stockno varchar(15) COLLATE SQL_Latin1_General_CP1_CS_AS N&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;OT NULL; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp;MODULE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BASE &amp;nbsp; &amp;nbsp; &amp;nbsp;END &amp;nbsp; &amp;nbsp; &amp;nbsp; SIZE&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Edi: 00000000:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Esi: 172E79E0: 3750534C &amp;nbsp;30303939 &amp;nbsp;00503235 &amp;nbsp;00393937 &amp;nbsp;20474B34 &amp;nbsp;4F54454D &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Eax: 0000000C:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ebx: 0BB49FD8: 0000000B &amp;nbsp;00000000 &amp;nbsp;00000000 &amp;nbsp;00000000 &amp;nbsp;00000000 &amp;nbsp;00000000 &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ecx: 00000003:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Edx: 00000000:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Eip: 10029D26: C88BA5F3 &amp;nbsp;F303E183 &amp;nbsp;5B5E5FA4 &amp;nbsp;909090C3 &amp;nbsp;90909090 &amp;nbsp;90909090 &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ebp: 00000008:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp;SegCs: 0000001B:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; EFlags: 00010206: 00610050 &amp;nbsp;00680074 &amp;nbsp;0043003D &amp;nbsp;005C003A &amp;nbsp;00490057 &amp;nbsp;0044004E &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Esp: 0BB3B4F4: 0A030398 &amp;nbsp;00000000 &amp;nbsp;0A837260 &amp;nbsp;10004E68 &amp;nbsp;0BB49FD8 &amp;nbsp;172E79E0 &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp;SegSs: 00000023:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* *******************************************************************************&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* -------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* Short Stack Dump&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* 10029D26 Module(UNKNOWN+00000000)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;* -------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Along with a lot of other garbled rubbish I got:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;CImageHelper::Init () Failed load of dbghelp.dll - Not enough storage is available to process this command.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;***Symbol load failed - Proceed to dump without any symbols&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;*Stack Dump being sent to M:\Program Files\Microsoft SQL Server\MSSQL\log\SQLDump0009.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;This actually caused another failure in the chain...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;WARNING: &amp;nbsp;Failed to reserve contiguous memory of Size= 65536.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
(alongside a lot of other memory based errors...)&lt;br /&gt;
&lt;br /&gt;
After much head scratching, and a few google queries without any real light being shed, I thought about this a bit and changed my google query a little.&lt;br /&gt;
&lt;br /&gt;
It turns out that the fault was disk space, despite there being over 3gb available on C:, about 57gb on M: and 57gb on T:, it was the C: drive at fault.&lt;br /&gt;
&lt;br /&gt;
How? Well the pagefile settings on this server were set to a manual value using the C: Drive. The values? 2048-4096 meg. Ah. That&#39;d do it. Windows wants 4gb of page space on a drive that only has 3gb remaining.&lt;br /&gt;
&lt;br /&gt;
A simple move to M: cured it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/751758275621241171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/09/sqlserver-2000-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/751758275621241171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/751758275621241171'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/09/sqlserver-2000-error.html' title='SQLServer 2000 Error'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-9011507599820409729</id><published>2011-08-24T07:07:00.000+01:00</published><updated>2011-08-24T07:07:03.337+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gym"/><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><title type='text'>A personal note...</title><content type='html'>Ok, so here&#39;s the thing...&lt;br /&gt;
&lt;br /&gt;
I&#39;ve been hammering the gym and various other highly active pursuits in an attempt to be fitter and lose my body fat whilst building muscle. I&#39;ve even radically changed my diet to assist in my endeavours..&lt;br /&gt;
&lt;br /&gt;
So, not a normal business as usual DBA task obviously, but something I am committed to nonetheless.&lt;br /&gt;
&lt;br /&gt;
Can I shift the remaining fat and become &quot;ripped&quot;? No.&lt;br /&gt;
&lt;br /&gt;
I still stand 76.7Kg (12st 1lb) BMI of 26, Body fat 21.1% Visceral fat 9.&lt;br /&gt;
&lt;br /&gt;
You know, maybe I should change careers to something where I&#39;m more active....&lt;br /&gt;
&lt;br /&gt;
...or maybe not!&lt;br /&gt;
&lt;br /&gt;
I guess the call of the databases is too strong for me to ignore!</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/9011507599820409729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/08/personal-note.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/9011507599820409729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/9011507599820409729'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/08/personal-note.html' title='A personal note...'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-1085126834806847518</id><published>2011-08-22T08:31:00.000+01:00</published><updated>2011-08-22T08:31:02.929+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="pg_hba.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL 9"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="source code"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>Installing Postgres 9 from source</title><content type='html'>Ok, so serious post time here. This morning I need to build a new postgres reporting database on RHEL 6.1. The RPM&#39;s that ship with RHEL 6.1 only provide 8.4.7, so it&#39;s source code time...&lt;br /&gt;
&lt;br /&gt;
It&#39;s not that I&#39;m against a 9.0 RPM install, I just don&#39;t like the default installation path, and much prefer to set it the same as many other servers, simply for consistency.&lt;br /&gt;
&lt;br /&gt;
So, here we go:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Step one - Create the postgres user &lt;br /&gt;&lt;i&gt;Whilst logged in as a superuser.&lt;/i&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting ~]# id&lt;br /&gt;uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)&lt;br /&gt;[root@pgreporting ~]# useradd -c &quot;PostgreSQL Server&quot; -d /var/lib/pgsql -m postgres&lt;br /&gt;[root@pgreporting ~]# grep postgres /etc/passwd&lt;br /&gt;postgres:x:500:501:PostgreSQL Server:/var/lib/pgsql:/bin/bash&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Step 2&amp;nbsp;- Create the necessary mount points.&lt;br /&gt;&lt;i&gt;There are a series of default mount points that I use, and these need to be set up.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;A quick edit of the fstab, followed by a mount &amp;lt;%s&amp;gt; command where &amp;lt;%s&amp;gt; is the mount name is done (forgive me for not providing the full details here! Security and all!)&lt;br /&gt;&lt;br /&gt;Ouch!! &quot; mount.nfs: Remote I/O error &quot; - This can&#39;t be good... My cifs mount worked, but nfs mounts didn&#39;t. Is nfs installed?&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting sqlbackups]# rpm -qa | grep nfs-utils&lt;br /&gt;nfs-utils-1.2.3-7.el6.x86_64&lt;br /&gt;nfs-utils-lib-1.1.5-3.el6.x86_64&lt;/span&gt;&lt;br /&gt;Restart nfslock then...&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting sqlbackups]# /etc/init.d/nfslock restart&lt;br /&gt;Stopping NFS statd: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Starting NFS statd: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nope - didn&#39;t work.&lt;br /&gt;&lt;br /&gt;rpcbind perhaps?&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting sqlbackups]# /etc/init.d/rpcbind restart&lt;br /&gt;Stopping rpcbind: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Starting rpcbind: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nope - Didn&#39;t work! Hmm....&lt;br /&gt;&lt;br /&gt;Ok - got it. Normally I&#39;d apply the &quot;defaults&quot; option to an nfs mount, however, it seems there&#39;s a bug in this version on RHEL 6, as it uses version 4, so adding the option vers=3 solved it.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Step 3 - Get the source, unzip and get ready to configure it!&lt;br /&gt;I already have the source located on a cifs mount, so a quick cp to /var/lib/pgsql/src:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting ~]# cd /var/lib/pgsql&lt;br /&gt;[root@pgreporting pgsql]# cp /sqlbackups/postgres/PostgresSource/Postgres/9.0.1/openlogic-postgresql-9.0.1-all-src-1.zip ./src&lt;br /&gt;&lt;br /&gt;[root@pgreporting pgsql]# cd ./src&lt;br /&gt;[root@pgreporting pgsql]# unzip&amp;nbsp;openlogic-postgresql-9.0.1-all-src-1.zip&amp;nbsp;&lt;/span&gt;&lt;br /&gt;[ ... snip ... ]&lt;br /&gt;&lt;br /&gt;And we now have source code!&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Step 4 -&amp;nbsp;Prerequisites.&lt;br /&gt;Now I plan to run Postgres with some bits and pieces enabled, so I&#39;m going to need to add some packages to the machine:&lt;br /&gt;&lt;br /&gt;Pam:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting pgsql]# yum list available | grep pam-devel&lt;br /&gt;pam-devel.i686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1.1-8.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;br /&gt;pam-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1.1-8.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;br /&gt;[root@pgreporting pgsql]# yum install pam-devel.x86_64&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Tcl:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting pgsql]# yum list available | grep tcl-devel&lt;br /&gt;tcl-devel.i686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:8.5.7-6.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;br /&gt;tcl-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:8.5.7-6.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;br /&gt;[root@pgreporting pgsql]# yum install tcl-devel.x86_64&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Krb5&lt;br /&gt;Oooh - Hang on...&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting pgsql]# yum list installed | grep krb5-devel&lt;br /&gt;krb5-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.9-9.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1&lt;/span&gt;&lt;br /&gt;Already installed!&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;ssl&lt;br /&gt;[root@pgreporting pgsql]# yum list available | grep openssl-devel&lt;br /&gt;openssl-devel.i686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0.0-10.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rhel61&lt;br /&gt;[root@pgreporting pgsql]# yum list installed | grep openssl-devel&lt;br /&gt;openssl-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0.0-10.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1&lt;/span&gt;&lt;br /&gt;Again - Already installed&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;[root@pgreporting pgsql]# yum list available | grep libxml2-devel&lt;br /&gt;libxml2-devel.i686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.7.6-1.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;br /&gt;[root@pgreporting pgsql]# yum list installed | grep libxml2-devel&lt;br /&gt;libxml2-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.7.6-1.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1&lt;/span&gt;&lt;br /&gt;Already installed.&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;[root@pgreporting pgsql]# yum list available | grep openldap-devel&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;openldap-devel.i686 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.4.23-15.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;openldap-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.4.23-15.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rhel61&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting pgsql]# yum install openldap-devel.x86_64&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;So let&#39;s configure!&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Step 5 - Configure&lt;br /&gt;Now this is the bit where I get all anal about file/folder locations. I have a load of databases scattered over all sorts of places. Typically they&#39;re all located in /var/lib/pgsql (unless I&#39;m &lt;i&gt;hiding&lt;/i&gt; them) so we need to configure with these options. The easiest way I find to get the correct locations is by running &quot;pg_config --configure&quot; on a server already installed and running:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[pgsql1 ~]# pg_config --configure&lt;br /&gt;&#39;--build=i686-redhat-linux-gnu&#39; &#39;--host=i686-redhat-linux-gnu&#39; &#39;--target=i386-redhat-linux-gnu&#39; &#39;--program-prefix=&#39; &#39;--prefix=/usr&#39; &#39;--exec-prefix=/usr&#39; &#39;--bindir=/usr/bin&#39; &#39;--sbindir=/usr/sbin&#39; &#39;--sysconfdir=/etc&#39; &#39;--datadir=/usr/share&#39; &#39;--includedir=/usr/include&#39; &#39;--libdir=/usr/lib&#39; &#39;--libexecdir=/usr/libexec&#39; &#39;--localstatedir=/var&#39; &#39;--sharedstatedir=/usr/com&#39; &#39;--mandir=/usr/share/man&#39; &#39;--infodir=/usr/share/info&#39; &#39;--disable-rpath&#39; &#39;--with-perl&#39; &#39;--with-tcl&#39; &#39;--with-tclconfig=/usr/lib&#39; &#39;--with-python&#39; &#39;--with-openssl&#39; &#39;--with-pam&#39; &#39;--with-krb5&#39; &#39;--enable-nls&#39; &#39;--enable-thread-safety&#39; &#39;--sysconfdir=/etc/sysconfig/pgsql&#39; &#39;--datadir=/usr/share/pgsql&#39; &#39;--with-docdir=/usr/share/doc&#39; &#39;CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables&#39; &#39;build_alias=i686-redhat-linux-gnu&#39; &#39;host_alias=i686-redhat-linux-gnu&#39; &#39;target_alias=i386-redhat-linux-gnu&#39;&lt;/span&gt;&lt;/li&gt;
We then &quot;steal&quot; some of these values and run tham against ./configure, however, we need to rememeber that the above config is a 32 bit config, and we&#39;re using 64 bit, so /usr/lib needs to become /usr/lib64 !!&lt;br /&gt;&lt;br /&gt;Something I always get issues with is Tcl, so I nip this in the bud before it even happens:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting src]# ln -s /usr/lib64/tclConfig.sh /usr/lib/tclConfig.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Basically, if you have the x86_64 install of Tcl, then postgres can&#39;t find&amp;nbsp;tclConfig.sh, even with lib64 specified!&lt;br /&gt;&lt;br /&gt;Now we&#39;re all configured: it&#39;s Compile time!&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting src]# make install&lt;/span&gt;&lt;br /&gt;And wait for about 10-15 minutes for it all to &quot;come together&quot;&lt;br /&gt;&lt;br /&gt;A quick:&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[root@pgreporting src]# which postgres&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/usr/bin/postgres&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Tells me it worked!&lt;br /&gt;&lt;/span&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Step 6 - Initdb&lt;br /&gt;for this next step we need to be the user &quot;postgres&quot;, so a quick &quot;su - postgres&quot; sorts that for us.&lt;br /&gt;&lt;br /&gt;I prefer to set some variables for postgres here, typically &quot;PGDATA&quot; and some aliases for pg_ctl, I&#39;m not going to insult anyones intelligence here, I&#39;m sure that this is a common task for all, so I&#39;ll cut out the posting of the edit here. I will however state that my default data directory is set as:&lt;br /&gt;/var/lib/pgsql/data&lt;br /&gt;&lt;br /&gt;So lets initdb!&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Success. You can now start the database server using:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; postgres -D /var/lib/pgsql/data&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;or&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; pg_ctl -D /var/lib/pgsql/data -l logfile start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Exactly what I wanted to see! A quick edit of postgresql.conf, pg_hba.conf and a few other symlinks etc, and we&#39;re all done!&lt;br /&gt;&lt;br /&gt;Happy installations!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/ul&gt;
&lt;ul&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/1085126834806847518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/08/installing-postgres-9-from-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1085126834806847518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1085126834806847518'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/08/installing-postgres-9-from-source.html' title='Installing Postgres 9 from source'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-8899769571475493791</id><published>2011-08-21T20:30:00.001+01:00</published><updated>2011-08-21T20:30:46.794+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DR"/><category scheme="http://www.blogger.com/atom/ns#" term="pg_standby"/><category scheme="http://www.blogger.com/atom/ns#" term="replication"/><category scheme="http://www.blogger.com/atom/ns#" term="scp"/><category scheme="http://www.blogger.com/atom/ns#" term="warm standby"/><title type='text'>DR Replication woes...</title><content type='html'>&lt;br /&gt;
So here we are again, only this time on a Sunday. Joy.&lt;br /&gt;
&lt;br /&gt;
Recent disk space issues on a production machine caused me some major issues:&lt;br /&gt;
pg_xlog (on a seperate physical disk) ran out of space due to what can only be described as a &quot;blip&quot; in the amount of data that was batch processed. Postgres panicked and gave up archiving. This is not normally an issue, however, it meant that I had to do some recovery work as the main data tables were destroyed.&lt;br /&gt;
&lt;br /&gt;
After the recovery work was completed, a quick inspection of the DR machine, pg_standby had complained about file inconsistencies, and so I broke the replication link.&lt;br /&gt;
&lt;br /&gt;
so this evening, both live and DR databases have been stopped, and I&#39;m taking a base backup using scp.&lt;br /&gt;
&lt;br /&gt;
Now I know there are several different ways to provide DR replication, but in this instance I&#39;m using log shipping. Ok, so I should base backup once a week, however, the disk requirements for this are too great, and so here I am, doing it manually... Again...&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/8899769571475493791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/08/dr-replication-woes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/8899769571475493791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/8899769571475493791'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/08/dr-replication-woes.html' title='DR Replication woes...'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-4998450695899972493</id><published>2011-07-22T07:39:00.000+01:00</published><updated>2011-07-22T07:39:08.360+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gym"/><category scheme="http://www.blogger.com/atom/ns#" term="nightshift"/><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><category scheme="http://www.blogger.com/atom/ns#" term="working from home"/><title type='text'>Back In The Office!</title><content type='html'>Well I&#39;m back in the office this morning, which I actually don&#39;t mind, it gives me the human conversation that has been missing over the last couple of days (other than that endured in the gym, which usually consists of out of breath ramblings and red faced sweaty &quot;Hello&quot;&#39;s).&lt;br /&gt;
&lt;br /&gt;
Coming back into the office after a couple of days on the night shift reminds me of two very serious points:&lt;br /&gt;
&lt;br /&gt;
1. I&#39;m not built for night shifts... They really take it out of me&lt;br /&gt;
2. When working from home, you tend to put in way more hours than necessary&lt;br /&gt;
&lt;br /&gt;
Don&#39;t get me wrong I&#39;m not complaining, but I do find it very strange that we feel it necessary to do that little bit extra when working at home, as if we&#39;re going to be overly&amp;nbsp;scrutinised&amp;nbsp;by both peers and management because we&#39;ve not been in the office! I do actually get more done at home, possibly because of less interruptions, and more comfort! Not to mention the ability to actually get a break from work when needed (I&#39;ll halt that point in favour of explaining another day!).&lt;br /&gt;
&lt;br /&gt;
It&#39;s a short day today anyway, so I&#39;m not going to grumble much more... A technical post will follow shortly, as I feel that I&#39;m posting more rambling than technical posts to this blog at the moment!</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/4998450695899972493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/back-in-office.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/4998450695899972493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/4998450695899972493'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/back-in-office.html' title='Back In The Office!'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-1429652176472727287</id><published>2011-07-20T22:53:00.000+01:00</published><updated>2011-07-20T22:53:51.198+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bucardo"/><category scheme="http://www.blogger.com/atom/ns#" term="Nagios"/><category scheme="http://www.blogger.com/atom/ns#" term="Perl"/><category scheme="http://www.blogger.com/atom/ns#" term="plpgsql"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="shell scripting"/><title type='text'>Another Graveyard Shift</title><content type='html'>Well, after limited success on my last graveyard shift, I&#39;ve now been commissioned for another overnight shift...&lt;br /&gt;
&lt;br /&gt;
So - what does a DBA do whilst babysitting a batch run? Simple... set up more reporting and statistics from other databases of course! As bad as that sounds, it&#39;s really not. It means a new database for one, and for another, it means I can keep my development skills sharp, in this case in Perl, Shell scripting and PG/PLSQL, as well as some statistical analysis skills I&amp;nbsp;learnt a while back to do some pretty nifty 6 sigma reporting!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;So, what why and how?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
What:&lt;br /&gt;
Ok, so I intend to record all batch run stats for all the live/DR PostgreSQL databases I administer, as well as setting up nagios notifications.&lt;br /&gt;
&lt;br /&gt;
Why:&lt;br /&gt;
At my company there has previously been no &quot;serious&quot; reporting, monitoring and notifications on database status and performance, this is something I intend to remedy&lt;br /&gt;
&lt;br /&gt;
How:&lt;br /&gt;
Using a combination of Nagios,&amp;nbsp;&lt;a href=&quot;http://bucardo.org/&quot;&gt;Bucardo&#39;s&lt;/a&gt;&amp;nbsp;excellent Check_Postgres Perl script, shell scripting and PLPGSQL, I plan to use a series of functions on a database that will be called remotely before, during and after batch scripts to log run times, errors and faults. These snippets of data will also be pushed through Nagios with text messaging installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It sounds a bit naff to be fair, however; I&#39;ll post updates on where I&#39;m at with it as and when I make progress!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/1429652176472727287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/another-graveyard-shift.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1429652176472727287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1429652176472727287'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/another-graveyard-shift.html' title='Another Graveyard Shift'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-7857614740670526395</id><published>2011-07-20T01:50:00.004+01:00</published><updated>2011-07-21T03:54:29.196+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pg_hba.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Technical"/><title type='text'>pg_hba.conf</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;So, the first of my technical posts to serve as me &quot;taking in&quot; the information I&#39;m putting down, and to help me understand by explaining it!&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: inherit;&quot;&gt;&lt;b&gt;Before anyone comments that this is taken from the documentation, I have done this on purpose as a learning aid!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;So the pg_hba.conf file (host based authentication) is located in the $PGDATA directory, and is used to allow and disallow access to the database by host. Now this is something&amp;nbsp;I&amp;nbsp;like about PostgreSQL.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Each entry comprises of the following format:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;#TYPE DATABASE USER ADDRESS METHOD&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Without going into too much detail, this breaks down as follows:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;TYPE: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; local (Unix domain sockets from the local machine)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt; host  (T&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;CP/IP connections from remote hosts)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; hostssl (As above but only with SSL enabled)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; hostnossl (Opposite of above) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;DATABASE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; Name of the database that the entry pertains to. Can be set to &quot;all&quot; for any, or &quot;sameuser&quot; to connect to a database with the same name as the user connecting.    &quot;samerole&quot;|&quot;samegroup&quot; to connect to a database that has the same name as role|group allocated to the connecting user. can be a comma separated list, or a file with a list of databases located on the host by specified @&amp;lt;filename&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;USER&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; &quot;all&quot; meaning all users, a &quot;+&amp;lt;groupname&amp;gt;&quot; to allow users assigned to a particular group, again comma serperated, or file with: &quot;@&amp;lt;filename&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ADDRESS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt; This can be a&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing&quot;&gt;CIDR-Address&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;(eg: 192.168.1.1/32,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.0.0/16 or&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0/0 etc.Although this can be set to any bit range 0-32, however, it&#39;s typically easier to set within 8 bit ranges in my opinion. Also, this will accept IPV6 addresses too... 0 is all hosts)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;or an IP and Mask.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;(e.g 192.168.1.1 &amp;nbsp; &amp;nbsp;255.255.255.255,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 192.168.0.0 &amp;nbsp; &amp;nbsp;255.255.0.0 or&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0.0.0)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; These only apply to non Unix socket connections&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;METHOD&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; This is where things get a little more complex!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt; options are:          &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;trust&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     A straight allow&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;reject&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     A straight denial&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;md5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     Encrypted password&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;crypt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;            Legacy Encrypted password method
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;password&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     Clear text password - Errm... not advised!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;krb5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     Kerberos V5 authentication, libraries required&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;ident&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     Check against pg_ident map - requires &amp;lt;mapname&amp;gt; after &quot;ident&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;pam &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;Pluggable authentication Module - OS Verification, libraries required&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;So a typical set of entries being:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;#TYPE  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;DATABASE&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;USER&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;ADDRESS&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;         &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;METHOD&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;local  all       all                      trust&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;# localhost connections are all trusted&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       dba      192.168.1.1/32  trust &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;#dba connection trusted&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       user1    194.216.0.0/16  md5   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;#passwords from 194.216* for user1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   postgres  postgres 194.216.0.0/16  trust &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;#trust&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;from 194.216* for postgres database connection by postgres&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       baduser   0.0.0.0/0       reject&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;    # baduser is banned from all dbs&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       all      0.0.0.0/0       pam&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;    # all other users pam authenticate&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;The rows in the file are processed top to bottom, and when a rule is matched it is used. so in this example:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       user2   0.0.0.0/0             reject&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: pre;&quot;&gt;host   all       user2   194.218.65.9/32       trust&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;User2 will *always* be rejected access from every ip as the second rule will never be hit. In this instance, I always arrange the file in the following order:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;local entries

Then&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;32 bit host entries, rejects first, then auths, then trusts&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;24 &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;bit host entries&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;, rejects first, then auths, then trusts&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;16 &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;bit host entries&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;, rejects first, then auths, then trusts&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;8  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;bit host entries&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;, rejects first, then auths, then trusts&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;0  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;bit host entries&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;, rejects first, then auths, then trusts&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;and this seems to work for me!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;In a nutshell, the permissions aren&#39;t actually that difficult to work out and can be quite secure... Well, only as secure as the server itself of course!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/7857614740670526395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/pghbaconf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/7857614740670526395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/7857614740670526395'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/pghbaconf.html' title='pg_hba.conf'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-5939248065877206568</id><published>2011-07-20T00:46:00.000+01:00</published><updated>2011-07-20T00:46:38.546+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Development against production databases"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Developing code against Production databases...</title><content type='html'>&amp;lt;rant&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have to be kidding right?&amp;nbsp;Wrong. It happens.&lt;br /&gt;
&lt;br /&gt;
This is something that really perplexes me, I mean, come on, I&#39;m from a development background and this is something I&#39;ve never done, but, this actually happens&lt;b&gt;. &lt;/b&gt;In big business too!&lt;br /&gt;
&lt;br /&gt;
It&#39;s certainly not a good idea in my opinion, but what are the other options? More hardware? Greater resource requirements? all with a hefty cost attachment, so I understand why this happens. This is something I can never condone, and will never get used to.&lt;br /&gt;
&lt;br /&gt;
What more can I say? other than: Do you not value your data? Then by all means, carry on!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/rant&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/5939248065877206568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/developing-code-against-production.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/5939248065877206568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/5939248065877206568'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/developing-code-against-production.html' title='Developing code against Production databases...'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-9162174755450132085</id><published>2011-07-20T00:12:00.004+01:00</published><updated>2011-07-20T01:53:06.000+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerPC"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><category scheme="http://www.blogger.com/atom/ns#" term="xlc"/><title type='text'>AIX &amp; PostgreSQL - Say wha?</title><content type='html'>So I am currently supporting and administering a real mixed bag of installations.&lt;br /&gt;
&lt;br /&gt;
The current versions of&amp;nbsp;PostgreSQL&amp;nbsp;I&#39;m supporting are from 7.4 up to 8.4 in production, with two 9.0 databases on their way through potential upgrade (and hopefully many more should I get my own way).&lt;br /&gt;
&lt;br /&gt;
The operating systems I have to contend with include RHEL 4, 5 and 6, AIX 5.3 on PowerPC and even Centos, all of these in a mix of 32 &amp;amp; 64 bit installations.&amp;nbsp;I&#39;m pretty sure I&#39;ve even seen a Debian installation lying around somewhere...&lt;br /&gt;
&lt;br /&gt;
So why is AIX a problem? Well, it&#39;s not; technically speaking of course. The only real annoyance is the&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Endianness&quot; target=&quot;blank&quot;&gt;endianness&lt;/a&gt;.&amp;nbsp;It&#39;s well documented in the&amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/8.4/static/installation-platform-notes.html&quot; target=&quot;blank&quot;&gt;PostgreSQL installation platform notes&lt;/a&gt;&amp;nbsp;that AIX is, shall we say, Quirky?

Basically, AIX makes PostgreSQL a real pain to compile and install. This wasn&#39;t something that I had to do, but I did inherit it, and as such, any thoughts of upgrading&amp;nbsp;PostgreSQL&amp;nbsp;on AIX seem to turn me to nightmares. I just don&#39;t fancy hours of battling with compiler errors. Not that I&#39;m not used to compiler errors you understand; having been a C/C++ in a previous incarnation they make (some) sense to me. I did, however, leave that profession, and as such was hoping to not have to worry about endianness and it&#39;s resulting problems at any point in this role.&lt;br /&gt;
&lt;br /&gt;
Alas, I fear I&#39;m going to have to dig in and get on with it!&amp;nbsp;The question is; how soon?</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/9162174755450132085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/aix-postgresql-say-wha.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/9162174755450132085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/9162174755450132085'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/aix-postgresql-say-wha.html' title='AIX &amp; PostgreSQL - Say wha?'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5734322723256989244.post-1229500173272507084</id><published>2011-07-19T23:42:00.000+01:00</published><updated>2011-07-19T23:42:14.166+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="misc"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="voodoo"/><category scheme="http://www.blogger.com/atom/ns#" term="welcome"/><title type='text'>Welcome to my new blog...</title><content type='html'>Well I&#39;ve been meaning to set this up for a while, but just haven&#39;t got round to it until now.&lt;br /&gt;
&lt;br /&gt;
So, as I&#39;m pulling a graveyard shift, I decided that there probably won&#39;t be a more appropriate time to do this.&lt;br /&gt;
&lt;br /&gt;
I&#39;m hoping to use this blog as a reference mainly for myself, to allow recollection of issues, problems and resolutions amongst many other little snippets that come to mind. My main focus here will be the Voodoo that is PostgreSQL, but I may occasionally post about MSSQL or even miscellaneous items... I guess we&#39;ll see!&lt;br /&gt;
&lt;br /&gt;
I&#39;m hoping to update at least once a week, maybe more frequently should the need occur.&lt;br /&gt;
&lt;br /&gt;
Watch this space.</content><link rel='replies' type='application/atom+xml' href='http://postgresandi.blogspot.com/feeds/1229500173272507084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://postgresandi.blogspot.com/2011/07/welcome-to-my-new-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1229500173272507084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5734322723256989244/posts/default/1229500173272507084'/><link rel='alternate' type='text/html' href='http://postgresandi.blogspot.com/2011/07/welcome-to-my-new-blog.html' title='Welcome to my new blog...'/><author><name>Martin French</name><uri>http://www.blogger.com/profile/15822244268226549820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ1hZqlkZvCCTvhfwlyIVwjNnD30pXybg-QILJJj_BpLqo8fSD0eNJhQ8QFDrXfoMSanQf2lvrkRqx1PVkSqGQ0InOSrENq6Dmiv7IsyleFTCaj4HtuJBnkA5qjBuZZw/s220/155849_10150093632988628_703213627_7383536_5740656_n.jpg'/></author><thr:total>0</thr:total></entry></feed>