Re: [SQL] createdb -D xxxx not working

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-sql(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [SQL] createdb -D xxxx not working
Date: 2000-01-11 15:14:10
Message-ID: 4279.947603650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

[hackers added to cc: list]

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On 2000-01-08, Tom Lane mentioned:
>> Chris Griffin <cgriffin(at)websales(dot)com> writes:
>>>> # setenv PGDATA2 /web/sites/1.192/db-data
>>>> # initlocation PGDATA2
>>>> # createdb -D PGDATA2
>>
>> Surely you want $PGDATA2 in the latter two lines?

> You might recall me mentioning that the whole alternative location
> business doesn't work in the first place. I'll fix that this week; Chris
> will have to wait until the next release.

Fine. BTW, am I the only one who thinks that it's really silly for
initlocation to expect to be given an unexpanded environment variable
name? That's not normal practice (either elsewhere in Postgres, or
anywhere else that I know of). It's confusing because it's not how
an ordinary Unix user would expect a shell command to behave, and it
doesn't buy any functionality that I can see. I'd vote for taking
out the auto-expansion, so that the correct invocation becomes
initlocation $PGDATA2
which is what an average user would expect.

Actually, after looking at what initlocation really does, which is
darn near nothing, I wonder whether we shouldn't dispense with it
altogether...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-01-11 15:21:43 Re: [HACKERS] Simmultanous Connections (fwd)
Previous Message Tom Lane 2000-01-11 15:06:10 Re: [HACKERS] Who fried this?

Browse pgsql-sql by date

  From Date Subject
Next Message Dirk Lutzebaeck 2000-01-11 15:21:51 best strategy doing a large copy and using indexes
Previous Message Peter Eisentraut 2000-01-11 13:26:42 Re: [SQL] createdb -D xxxx not working