Re: space reserved for WAL record does not match what was written: panic on windows

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: space reserved for WAL record does not match what was written: panic on windows
Дата
Msg-id CA+TgmoYr5anvMEZ0Vorp18hNpiw+-OSgkx0wXf4rYw_QvOGeUA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: space reserved for WAL record does not match what was written: panic on windows  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: space reserved for WAL record does not match what was written: panic on windows  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On Fri, Oct 4, 2013 at 8:19 AM, Andres Freund <andres@2ndquadrant.com> wrote:
> Could it be that MAXALIGN/TYPEALIGN doesn't really work for values
> bigger than 32bit?
>
> #define MAXALIGN(LEN)                   TYPEALIGN(MAXIMUM_ALIGNOF, (LEN))
> #define TYPEALIGN(ALIGNVAL,LEN)  \
>         (((intptr_t) (LEN) + ((ALIGNVAL) - 1)) & ~((intptr_t) ((ALIGNVAL) - 1)))

Isn't the problem, more specifically, that it doesn't work for values
larger than an intptr_t?

And does that indicate that intptr_t is the wrong type to be using here?

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



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

Предыдущее
От: Marc Cousin
Дата:
Сообщение: segfault with contrib lo
Следующее
От: Robert Haas
Дата:
Сообщение: Re: mvcc catalo gsnapshots and TopTransactionContext