Re: libpq debug log

Поиск
Список
Период
Сортировка
От 'alvherre@alvh.no-ip.org'
Тема Re: libpq debug log
Дата
Msg-id 20210401161041.GA10892@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: libpq debug log  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: libpq debug log
Список pgsql-hackers
On 2021-Apr-01, Tom Lane wrote:

> BTW, what in the world is this supposed to accomplish?
> 
> -                        (long long) rows_to_send);
> +                        (1L << 62) + (long long) rows_to_send);
> 
> Various buildfarm members are complaining that the shift distance
> is more than the width of "long", which I'd just fix with s/L/LL/
> except that the addition of the constant seems just wrong to
> begin with.

It makes the text representation wider, which means some buffer fills up
faster and the program switches from sending to receiving.

-- 
Álvaro Herrera       Valdivia, Chile
"Ni aún el genio muy grande llegaría muy lejos
si tuviera que sacarlo todo de su propio interior" (Goethe)



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

Предыдущее
От: John Naylor
Дата:
Сообщение: Re: truncating timestamps on arbitrary intervals
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit