Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Nathan Myers
On Thu, Dec 07, 2000 at 12:22:12PM -0800, Mikheev, Vadim wrote: > > > That's why an end marker must follow all valid records. > ... > > > > That requires an extra out-of-sequence write. > > Yes, and also increase probability to corrupt already committed > to log data. > > > (I'd also like to

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Bruce Guenter
On Thu, Dec 07, 2000 at 12:22:12PM -0800, Mikheev, Vadim wrote: > > > That's why an end marker must follow all valid records. > > That requires an extra out-of-sequence write. > Yes, and also increase probability to corrupt already committed > to log data. Are you referring to the case where t

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Bruce Guenter
On Thu, Dec 07, 2000 at 12:25:41PM -0800, Nathan Myers wrote: > That requires an extra out-of-sequence write. Ayup! > Generally, there are no guarantees, only reasonable expectations. I would differ, but that's irrelevant. > A 64-bit CRC would give sufficient confidence... This is part of wh

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Horst Herb
> > (I'd also like to see CRCs on all the table blocks as well; is there > > a place to put them?) > > Do we need it? "physical log" feature suggested by Andreas will protect > us from non atomic data block writes. CRCs are neccessary because of glitches, hardware failures, operating system bugs,

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Horst Herb
P.S.: I would volunteer to integrate CRC routines into postgres if somebody points me in the right direction in the source code. Horst

RE: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Mikheev, Vadim
> > That's why an end marker must follow all valid records. ... > > That requires an extra out-of-sequence write. Yes, and also increase probability to corrupt already committed to log data. > (I'd also like to see CRCs on all the table blocks as well; is there > a place to put them?) Do we

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-07 Thread Nathan Myers
On Wed, Dec 06, 2000 at 06:53:37PM -0600, Bruce Guenter wrote: > On Wed, Dec 06, 2000 at 11:08:00AM -0800, Nathan Myers wrote: > > On Wed, Dec 06, 2000 at 11:49:10AM -0600, Bruce Guenter wrote: > > > > > > I don't know how pgsql does it, but the only safe way I know of > > > is to include an "end

Re: [HACKERS] CRCs (was: beta testing version)

2000-12-06 Thread Bruce Guenter
On Wed, Dec 06, 2000 at 11:08:00AM -0800, Nathan Myers wrote: > On Wed, Dec 06, 2000 at 11:49:10AM -0600, Bruce Guenter wrote: > > On Wed, Dec 06, 2000 at 11:15:26AM -0500, Tom Lane wrote: > > > How exactly *do* we determine where the end of the valid log data is, > > > anyway? > > > > I don't kn