Re: tries to use -h switch when not needed

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: tries to use -h switch when not needed
Дата
Msg-id 937d27e10803190435w1414b506l5e01d74155c89114@mail.gmail.com
обсуждение исходный текст
Ответ на tries to use -h switch when not needed  (Roberto C. Sánchez <roberto@connexer.com>)
Ответы Re: tries to use -h switch when not needed  (Roberto C. Sánchez <roberto@connexer.com>)
Список pgadmin-support
On Wed, Mar 19, 2008 at 5:19 AM, Roberto C. Sánchez
<roberto@connexer.com> wrote:
> I have noticed that on Mac OS X (v 1.8.1) and Debian Etch (v 1.4.3), I
>  see incorrect behavior when trying to restore into a database when the
>  connection to the database is via a UNIX domain socket.  In such a case,
>  there is no hostname specified.  However, the commandline produced for
>  the restore command is this:
>
>  /usr/bin/pg_restore -i -h  -p 5432 -U roberto -d jilldb -v "/network/home/roberto/tmp/pg.backup"
>
>  So, even though the configuration for the server in question lists
>  neither hostname nor port number, it tries to add both to the command
>  line.  Since the port has a sensible default, it is at least given a
>  value.  The host, on the other hand, has no sensible default and so is
>  left blank causing pg_restore to fail.  Anyhow, it seems to me that the
>  logic behind this should be made a little smarter such that if neither
>  host nor port are specified that the corresponding command-line options
>  should be omitted.
>

I've committed changes to omit the -h option when it's not specified.
We don't really support not specifying the port number, so I've left
that as is.

Thanks for the report.

--
Dave Page
EnterpriseDB UK Ltd: http://www.enterprisedb.com
PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk


В списке pgadmin-support по дате отправления:

Предыдущее
От: Julius Tuskenis
Дата:
Сообщение: no database or relation name in locks list
Следующее
От: Roberto C. Sánchez
Дата:
Сообщение: Re: tries to use -h switch when not needed