Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>
>>Hopefully the third try is a charm ;-)
>
>>Version 3 is now available: fixes the init script. Previously
>>/etc/init.d/postgresql worked the first time used (i.e. would initdb and
>>start postgres) but not the second and subsequent times.
>
> [ blink... ] Was this your own error, or are you saying there is such a
> bug in the current RPM distributions?
>
My own. I missed changing this line:
if [ `cat $PGDATA/PG_VERSION` != '7.4' ]
to this:
if [ `cat $PGDATA/PG_VERSION` != '8.0' ]
That code section gets skipped over in the case that no initdb has yet
been performed, so I didn't notice until I went to restart the server.
Joe