make 'PrivateRefCount' 32 bits wide

Поиск
Список
Период
Сортировка
От Neil Conway
Тема make 'PrivateRefCount' 32 bits wide
Дата
Msg-id 1082577467.7010.40.camel@tokyo
обсуждение исходный текст
Ответы Re: make 'PrivateRefCount' 32 bits wide  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
This patch changes PrivateRefCount and LocalRefCount in the bufmgr from
being arrays of long to arrays of int32, per earlier discussion. This
should save a little memory on 64LP machines, and there's no way we need
to track > 2^31 references to a single buffer.

I also fixed the rather widespread assumption that a BufferDesc's
refcount is signed; it is not (and hence the correct printf formatting
code is %u, not %d).

I also changed ShowPinTrace to a bool, and removed some multi-line
string literals (yuck!)

Barring any objections, I intend to apply this patch within 24 hours.

-Neil


Вложения

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: doc improv: backup/restore
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PSQLRC environment variable.