Re: pg_ctl idempotent option

Поиск
Список
Период
Сортировка
От Boszormenyi Zoltan
Тема Re: pg_ctl idempotent option
Дата
Msg-id 50F4372D.3050500@cybertec.at
обсуждение исходный текст
Ответ на Re: pg_ctl idempotent option  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
2013-01-14 16:22 keltezéssel, Tom Lane írta:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> Here is a patch to add an option -I/--idempotent to pg_ctl, the result
>> of which is that pg_ctl doesn't error on start or stop if the server is
>> already running or already stopped.
> Idempotent is a ten-dollar word.  Can we find something that average
> people wouldn't need to consult a dictionary to understand?

--do-nothing-if-same-state?

>
> Also, should the option affect *only* the result code as you have it,
> or should it also change the printed messages to reflect that the
> case is considered expected?
>
> Also it appears to me that the hunk at lines 812ff is changing the
> default behavior, which is not what the patch is advertised to do.
>
>             regards, tom lane
>
>


--
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de     http://www.postgresql.at/




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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Get current query in a trigger function
Следующее
От: Robert Haas
Дата:
Сообщение: Re: GIN over array of ENUMs