Question on alignment

Поиск
Список
Период
Сортировка
От Antonin Houska
Тема Question on alignment
Дата
Msg-id 2555.1554105665@localhost
обсуждение исходный текст
Ответы Re: Question on alignment  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
In copydir.c:copy_file() I read

    /* Use palloc to ensure we get a maxaligned buffer */
    buffer = palloc(COPY_BUF_SIZE);

No data type wider than a single byte is used to access the data in the
buffer, and neither read() nor write() should require any specific alignment.
Can someone please explain why alignment matters here?

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com



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

Предыдущее
От: "Jamison, Kirk"
Дата:
Сообщение: RE: Timeout parameters
Следующее
От: Christoph Berg
Дата:
Сообщение: Re: Enable data checksums by default