dsm use of uint64

Поиск
Список
Период
Сортировка
От Robert Haas
Тема dsm use of uint64
Дата
Msg-id CA+TgmoZ_du2L_Z4zyyjED0fZpbz=iH7QFR=TmUzfWgsrdTZHKg@mail.gmail.com
обсуждение исходный текст
Ответы Re: dsm use of uint64  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
When I wrote the dynamic shared memory patch, I used uint64 everywhere
to measure sizes - rather than, as we do for the main shared memory
segment, Size.  This now seems to me to have been the wrong decision;
I'm finding that it's advantageous to make dynamic shared memory
behave as much like the main shared memory segment as is reasonably
possible, and using Size facilitates the use of MAXALIGN(),
TYPEALIGN(), etc. as well as things like add_size() and mul_size()
which are just as relevant in the dynamic shared memory case as they
are for the main shared memory segment.

Therefore, I propose to apply the attached patch.

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

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: logical changeset generation v6.4
Следующее
От: David Rowley
Дата:
Сообщение: Changes to stringinfo.c