| От | Adrian Klaver |
|---|---|
| Тема | Re: Can not decompress a compressed string under plpy! |
| Дата | |
| Msg-id | 200905200714.14045.aklaver@comcast.net обсуждение исходный текст |
| Ответ на | Can not decompress a compressed string under plpy! (Timmy <timheit@netvigator.com>) |
| Список | pgsql-general |
On Wednesday 20 May 2009 6:06:17 am Timmy 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? > > Thanks! A bit more information is required. What version of Postgres are you using, what OS? I am guessing that the compressed string is being created by a Python program external to the database and then inserted into a field, is this correct? You are then trying to decompress the string via a plpythonu function within the database,correct? Did you import the zlib module into the plpythonu function? -- Adrian Klaver aklaver@comcast.net
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера