[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 good

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 compressed data is

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 surprise

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 there panic?

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