question about /etc/init.d/postgresql in PGDG

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: question about /etc/init.d/postgresql in PGDG
Date: 2009-08-19 06:01:13
Message-ID: dcc563d10908182301i56f03b26v7d6270b2ed1f65d2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In the init script from the PGDG rpms there's this block of code:

PGDATA=/var/lib/pgsql/data

if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base/template1" ]
then
echo "Using old-style directory structure"
else
PGDATA=/var/lib/pgsql/data
fi

Is it just me, or is the else extra noise? Just wondering if there's
a reason a config variable is in two places at once.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dilyan Berkovski 2009-08-19 06:33:50 pl/pgsql loop thru columns names
Previous Message Brendan Hill 2009-08-19 05:34:37 Re: Idle processes chewing up CPU?