Re: Memory Alignment in Postgres

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Memory Alignment in Postgres
Дата
Msg-id CA+TgmobD+qTEvQuc1=-aUh6w_B0cqY_POAMXm6D8_d0vBNQVzw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Memory Alignment in Postgres  (Arthur Silva <arthurprs@gmail.com>)
Список pgsql-hackers
On Thu, Sep 11, 2014 at 9:32 AM, Arthur Silva <arthurprs@gmail.com> wrote:
> I thought all memory alignment was (or at least the bulk of it) handled
> using some codebase wide macros/settings, otherwise how could different
> parts of the code inter-op? Poking this area might suffice for some initial
> testing to check if it's worth any more attention.

Well, sure, but the issues aren't too simple.  For example, I think
there are cases where we rely on the alignment bytes being zero to
distinguish between an aligned value following and an unaligned
toasted value.  That stuff can make your head explode, or at least
mine.

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Scaling shared buffer eviction
Следующее
От: Mitsumasa KONDO
Дата:
Сообщение: Re: add modulo (%) operator to pgbench