Re: [HACKERS] Why we panic in pglz_decompress

2008-02-29 Thread Zdenek Kotala
Tom Lane napsal(a): Alvaro Herrera <[EMAIL PROTECTED]> writes: Zdenek Kotala wrote: I'm now looking into toast code and I found following code in pglz_decompress: 00704 if (destsize != source->rawsize) 00705 elog(destsize > source->rawsize ? FATAL : ERROR, 00706 "com

Re: [HACKERS] Why we panic in pglz_decompress

2008-02-29 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Zdenek Kotala wrote: >> I'm now looking into toast code and I found following code in >> pglz_decompress: >> >> 00704 if (destsize != source->rawsize) >> 00705 elog(destsize > source->rawsize ? FATAL : ERROR, >> 00706 "compres

Re: [HACKERS] Why we panic in pglz_decompress

2008-02-29 Thread Zdenek Kotala
Alvaro Herrera napsal(a): Zdenek Kotala wrote: I'm now looking into toast code and I found following code in pglz_decompress: 00704 if (destsize != source->rawsize) 00705 elog(destsize > source->rawsize ? FATAL : ERROR, 00706 "compressed data is corrupt"); I'm surpr

Re: [HACKERS] Why we panic in pglz_decompress

2008-02-29 Thread Alvaro Herrera
Zdenek Kotala wrote: > I'm now looking into toast code and I found following code in > pglz_decompress: > > 00704 if (destsize != source->rawsize) > 00705 elog(destsize > source->rawsize ? FATAL : ERROR, > 00706 "compressed data is corrupt"); > > > I'm surprise why we the

[HACKERS] Why we panic in pglz_decompress

2008-02-29 Thread Zdenek Kotala
I'm now looking into toast code and I found following code in pglz_decompress: 00704 if (destsize != source->rawsize) 00705 elog(destsize > source->rawsize ? FATAL : ERROR, 00706 "compressed data is corrupt"); I'm surprise why we there panic? By my opinion is not too g