Re: Improving on MAX_CONVERSION_GROWTH

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Improving on MAX_CONVERSION_GROWTH
Дата
Msg-id CA+TgmoY_3ZFbtUgnvrF2wAB-2hecdDuJjqEOM0T033XfE28wfg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Improving on MAX_CONVERSION_GROWTH  (Andres Freund <andres@anarazel.de>)
Ответы Re: Improving on MAX_CONVERSION_GROWTH  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Sep 27, 2019 at 11:40 AM Andres Freund <andres@anarazel.de> wrote:
> Note that one of the additional reasons for the 1GB limit is that it
> protects against int overflows. I'm somewhat unconvinced that that's a
> sensible approach, but ...

It's not crazy. People using 'int' rather casually just as they use
'palloc' rather casually, without necessarily thinking about what
could go wrong at the edges. I don't have any beef with that as a
general strategy; I just think we should be trying to do better in the
cases where it negatively affects the user experience.

> It's worthwhile to note that additional passes over data are often quite
> expensive, memory latency hasn't shrunk that much in last decade or
> so. I have frequently seen all the memcpys from one StringInfo/char*
> into another StringInfo show up in profiles.

OK.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: fix "Success" error messages
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Standby accepts recovery_target_timeline setting?