Re: pg_ctl restart bug

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_ctl restart bug
Дата
Msg-id 200104202136.f3KLa8I24843@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pg_ctl restart bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I can assure you that $@ is never the way to go, always use "$@".  Not
sure about the second change.

> pg_ctl restart works fine with this patch, but I'm not sure whether it
> breaks useful cases for the other paths:
>
> ***************
> *** 323,335 ****
>           shift
>               po_path=$1
>               shift
> !         POSTOPTS=$@
>       fi
>       else # -o given
>           POSTOPTS="-D $PGDATA $POSTOPTS"
>       fi
>
> !     eval '$po_path' '$POSTOPTS' $logopt '&'
>
>       # if had an old lockfile, check to see if we were able to start
>       if [ -n "$oldpid" ];then
> --- 323,335 ----
>           shift
>               po_path=$1
>               shift
> !         POSTOPTS="$@"
>       fi
>       else # -o given
>           POSTOPTS="-D $PGDATA $POSTOPTS"
>       fi
>
> !     eval '$po_path' $POSTOPTS $logopt '&'
>
>       # if had an old lockfile, check to see if we were able to start
>       if [ -n "$oldpid" ];then
>
>
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl restart bug
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_ctl restart bug