Re: Patch: add timing of buffer I/O requests

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Patch: add timing of buffer I/O requests
Дата
Msg-id CAM-w4HPP+E7U=3CwSHao+Sv5237ngztx50-dD2r9UzTA-c7cEw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Patch: add timing of buffer I/O requests  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Patch: add timing of buffer I/O requests
Re: Patch: add timing of buffer I/O requests
Список pgsql-hackers
On Fri, Apr 13, 2012 at 8:15 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> That's probably true, but I'm not sure it's worth worrying about -
> one-in-four-billion is a pretty small probability.

Is this not subject to the birthday paradox? If you have a given hash
you're worried about a collision with then you have a
one-in-four-billion chance. But if you have a collection of hashes and
you're worried about any collisions then it only takes about 64k
before there's likely a collision.

-- 
greg


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Command counter increment vs updating an active snapshot
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Patch: add timing of buffer I/O requests