Re: Snapshot synchronization, again... - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Snapshot synchronization, again...
Date
Msg-id AANLkTim0t=ro8pH010yrwMcNvdVO8yPw-XWRgz0qmfnq@mail.gmail.com
Whole thread Raw
In response to Re: Snapshot synchronization, again...  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Snapshot synchronization, again...
List pgsql-hackers
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?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: rsmogura
Date:
Subject: Re: Void binary patch
Next
From: Heikki Linnakangas
Date:
Subject: Re: Snapshot synchronization, again...