Re: Can not decompress a compressed string under plpy!

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Can not decompress a compressed string under plpy!
Date: 2009-05-21 10:36:59
Message-ID: gv3asb$bov$4@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-05-20, Timmy <timheit(at)netvigator(dot)com> wrote:
> Hi,
> I have stored a compressed string in a table field.
> The compressed string is created by zlib using python.
> I want to decompress this string by zlib under plpy but plpy fails to do so.
> Is plpy not support decompression? Why?

are you storing it in a bytea column?
is the string correctly unescaped before you attempt decompressing it?
are you able to extract and decompress the string by other means (as
proof that it has been stored correctly)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2009-05-21 10:59:27 Re: corruption on data table disconnects other clients silently when page is read
Previous Message Dave Page 2009-05-21 10:33:44 Re: package for debugger/wizard was: Feedback on PG?