Re: Optional postgres database not so optional in 8.1

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Paesold <mpaesold(at)gmx(dot)at>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, John Hansen <john(at)geeknet(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Optional postgres database not so optional in 8.1
Date: 2005-11-18 13:04:21
Message-ID: 437DD155.8060508@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I now notice that "pg_ctl -w start" fails if the postgres db is missing.
I am not sure that changing pg_ctl to use this rather than template1 was
a good thing, and it can't be overridden. I suggest we revert that
particular change - it seems to me to confer little to no benefit,
unlike the case with createdb etc.

cheers

andrew

Andrew Dunstan wrote:

>
>
> Andrew Dunstan wrote:
>
>>>
>>> It does seem a bit inconsistent that psql wouldn't connect to the
>>> specified database in order to do -l, if one is specified.
>>> Anyone want to look and see if it's easy to change?
>>>
>>>
>>
>>
>> options.action == ACT_LIST_DB && options.dbname == NULL ?
>> "postgres" : options.dbname
>>
>
> Tested, and worked fine.
>
> Committed on Head and 8.1 branches.
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-11-18 13:24:41 Re: Anyone want to fix plperl for null array elements?
Previous Message Steve Wampler 2005-11-18 12:55:38 Re: Improving count(*)