Re: Hot Standby, release candidate?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hot Standby, release candidate?
Дата
Msg-id 14344.1260826791@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Hot Standby, release candidate?  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Hot Standby, release candidate?  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> What is the best way of restricting the hash table to a maximum size? 

There is nothing in dynahash that will enforce a maximum size against
calling code that's not cooperating; and I'll resist any attempt to
add such a thing, because it would create a serialization point across
the whole hashtable.

If you know that you need at most N entries in the hash table, you can
preallocate that many at startup (note the second arg to ShmemInitHash)
and be safe.  If your calling code might go past that, you'll need to
fix the calling code.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby, release candidate?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby, release candidate?