Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work - Mailing list pgsql-bugs

From Devrim GÜNDÜZ
Subject Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
Date
Msg-id 1368547251.14679.91.camel@lenovo01-laptop03.gunduz.org
Whole thread Raw
In response to Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List 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

pgsql-bugs by date:

Previous
From: "Nicholson, Brad (Toronto, ON, CA)"
Date:
Subject: Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
Next
From: majestio@ya.ru
Date:
Subject: BUG #8162: Operation would bloсk (0x00002733/10035)