pgsql: Fix more DSA problems uncovered by the buildfarm.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix more DSA problems uncovered by the buildfarm.
Дата
Msg-id E1cDvNQ-0006h7-1P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix more DSA problems uncovered by the buildfarm.

On 32-bit systems, don't try to use 64-bit DSA pointers, because the
computation of DSA_MAX_SEGMENT_SIZE overflows Size.

Cast 1 to Size before shifting it, so that the compiler doesn't
produce a result of the wrong width.

In passing, change one use of size_t to Size.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/88f626f8680fbe93444582317d1adb375111855f

Modified Files
--------------
src/backend/utils/mmgr/dsa.c |  4 ++--
src/include/utils/dsa.h      | 23 ++++++++++++++---------
2 files changed, 16 insertions(+), 11 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Try to fix some DSA-related compiler warnings.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Reduce the default for max_worker_processes back to 8.