Re: Can't get pg_upgrade work for 8.4

From: Alexander Fortin <alexander(dot)fortin(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can't get pg_upgrade work for 8.4
Date: 2011-12-28 14:38:26
Message-ID: 4EFB29E2.3060104@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Seems that the problem resides in the pg_ctl packaged with Ubuntu 10.04,
the only way we found to fix this was to recompile Postgresql 8.4.9 from
sources using the following patch, than instruct pg_upgrade (9.1.2) to
use the hand compiled pg_ctl instead of the original one (a raw symlink
did the job).

Here's the patch, maybe someone could need it.

*** pg_ctl.c.orig 2011-12-27 14:52:27.000000000 +0000
--- pg_ctl.c 2011-12-27 15:20:25.000000000 +0000
***************
*** 503,509 ****
* probably timeout first
*/
snprintf(connstr, sizeof(connstr),
! "dbname=postgres port=%s connect_timeout=5",
portstr);

for (i = 0; i < wait_seconds; i++)
{
--- 503,509 ----
* probably timeout first
*/
snprintf(connstr, sizeof(connstr),
! "dbname=postgres port=%s connect_timeout=5
host=localhost", portstr);

for (i = 0; i < wait_seconds; i++)
{

Happy new year!

--
Alexander Fortin
http://about.me/alexanderfortin/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Éric Fournier 2011-12-28 15:05:40 Éric Fournier/CSPQ est absent(e).
Previous Message ktm@rice.edu 2011-12-28 14:25:54 Re: User password encryption using a stronger hashing function?