Replication timeout units

Поиск
Список
Период
Сортировка
Искать

Replication timeout units

От:
Magnus Hagander <magnus@hagander.net>
Дата:
from postgresql.conf.sample:

#replication_timeout = 60s	# in milliseconds; 0 disables

Seconds or milliseconds? I would suggest we just remove the "in
milliseconds", and instead say "timeout for replication connections; 0
disables".

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Re: Replication timeout units

От:
Peter Geoghegan <peter@2ndquadrant.com>
Дата:
On 20 December 2011 13:38, Magnus Hagander  wrote:
> from postgresql.conf.sample:
>
> #replication_timeout = 60s      # in milliseconds; 0 disables
>
> Seconds or milliseconds? I would suggest we just remove the "in
> milliseconds", and instead say "timeout for replication connections; 0
> disables".

+1 from me. That's very confusing.

-- 
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

Re: Replication timeout units

От:
"Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Дата:
Peter Geoghegan  wrote:
> Magnus Hagander  wrote:
>> from postgresql.conf.sample:
>>
>> #replication_timeout = 60s      # in milliseconds; 0 disables
>>
>> Seconds or milliseconds? I would suggest we just remove the "in
>> milliseconds", and instead say "timeout for replication
>> connections; 0 disables".
> 
> +1 from me. That's very confusing.
Isn't it providing information on both the granularity and the
default unit if none is specified?  Why is it more confusing here
than statement_timeout or any of the other places this pattern is
followed?
-1 from me on removing it *only* here.
-Kevin

Re: Replication timeout units

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Magnus Hagander  writes:
> from postgresql.conf.sample:
> #replication_timeout = 60s	# in milliseconds; 0 disables

> Seconds or milliseconds? I would suggest we just remove the "in
> milliseconds", and instead say "timeout for replication connections; 0
> disables".

That would take away any information about whether it could be set at
sub-second resolution.  I don't like the current wording either, but
just removing the "in milliseconds" seems wrong.
		regards, tom lane

Re: Replication timeout units

От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Dec 20, 2011 at 11:34:25AM -0600, Kevin Grittner wrote:
> Peter Geoghegan  wrote:
> > Magnus Hagander  wrote:
> >> from postgresql.conf.sample:
> >>
> >> #replication_timeout = 60s      # in milliseconds; 0 disables
> >>
> >> Seconds or milliseconds? I would suggest we just remove the "in
> >> milliseconds", and instead say "timeout for replication
> >> connections; 0 disables".
> > 
> > +1 from me. That's very confusing.
>  
> Isn't it providing information on both the granularity and the
> default unit if none is specified?  Why is it more confusing here
> than statement_timeout or any of the other places this pattern is
> followed?
>  
> -1 from me on removing it *only* here.

FYI, I looked into this and can't see a way to improve it.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + It's impossible for everything to be true. +


FAQ