Re: Snapshot synchronization, again...

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Snapshot synchronization, again...
Дата
Msg-id 4D63C97A.3020900@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Snapshot synchronization, again...  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Snapshot synchronization, again...  (Robert Haas <robertmhaas@gmail.com>)
Re: Snapshot synchronization, again...  (Joachim Wieland <joe@mcknight.de>)
Список pgsql-hackers
On 22.02.2011 16:29, Robert Haas wrote:
> On Tue, Feb 22, 2011 at 8:58 AM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com>  wrote:
>> On 22.02.2011 15:52, Robert Haas wrote:
>>>
>>> On Tue, Feb 22, 2011 at 8:01 AM, Heikki Linnakangas
>>> <heikki.linnakangas@enterprisedb.com>    wrote:
>>>>
>>>> Yes. It would be good to perform those sanity checks anyway.
>>>
>>> I don't think it's good; I think it's absolutely necessary.  Otherwise
>>> someone can generate arbitrary garbage, hash it, and feed it to us.
>>> No?
>>
>> No, the hash is stored in shared memory. The hash of the garbage has to
>> match.
>
> Oh.  Well that's really silly.  At that point you might as well just
> store the snapshot and an integer identifier in shared memory, right?

Yes, that's the point I was trying to make. I believe the idea of a hash 
was that it takes less memory than storing the whole snapshot (and more 
importantly, a fixed amount of memory per snapshot). But I'm not 
convinced either that dealing with a hash is any less troublesome.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Snapshot synchronization, again...
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Snapshot synchronization, again...