Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work

From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: bnicholson(at)hp(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
Date: 2013-05-14 16:00:51
Message-ID: 1368547251.14679.91.camel@lenovo01-laptop03.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Hi,

On Tue, 2013-05-14 at 18:49 +0300, Heikki Linnakangas wrote:
> There seems to be a bug in the init script. If you don't give a
> location
> for pg_xlog on the command line, it uses $PGDATA/pg_xlog, which
> confuses
> initdb:
>
> > # If the xlog directory is specified just after the locale
> parameter, use it:
> > if [ -z $INITDBXLOGDIR ]
> > then
> > INITDBXLOGSTRING=`echo $PGDATA/pg_xlog`
> > else
> > INITDBXLOGSTRING=`echo $INITDBXLOGDIR`
> > fi
> > ...
> > # Initialize the database
> > $SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --xlogdir=
> $INITDBXLOGSTRING --auth='ident' $LOCALESTRING" >> "$PGLOG" 2>&1
> < /dev/null
>
> Seems that if INITDBXLOGDIR is not given, it should just leave out
> --xlogdir. Devrim?

:( Good catch. Will fix.

Regards,

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message majestio 2013-05-14 20:01:29 BUG #8162: Operation would bloсk (0x00002733/10035)
Previous Message Nicholson, Brad (Toronto, ON, CA) 2013-05-14 15:57:55 Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work