Re: PL/Python array support

Поиск
Список
Период
Сортировка
Искать
От
Joshua Tolley
Тема
Re: PL/Python array support
Дата
Msg-id
20091202121156.GC20931@eddie
Ответ на
Re: PL/Python array support (Peter Eisentraut)
Список
Дерево обсуждения
PL/Python array support Peter Eisentraut <peter_e@gmx.net>
Re: PL/Python array support Peter Eisentraut <peter_e@gmx.net>
Re: PL/Python array support Teodor Sigaev <teodor@sigaev.ru>
Re: PL/Python array support Peter Eisentraut <peter_e@gmx.net>
Re: PL/Python array support Joshua Tolley <eggyknap@gmail.com>
Re: PL/Python array support Peter Eisentraut <peter_e@gmx.net>
Re: PL/Python array support Joshua Tolley <eggyknap@gmail.com>
Re: PL/Python array support Robert Haas <robertmhaas@gmail.com>
Re: PL/Python array support Peter Eisentraut <peter_e@gmx.net>
On Fri, Nov 20, 2009 at 12:00:24AM +0200, Peter Eisentraut wrote:
> On fre, 2009-11-13 at 18:46 +0300, Teodor Sigaev wrote:
> > CREATE OR REPLACE FUNCTION incr(stuff int[]) RETURNS int[] AS $$
> > for x in stuff:
> >      yield x+1
> > $$
> > LANGUAGE 'plpythonu';
> > 
> > # select incr(ARRAY[1,2,3]);
> > ERROR:  invalid memory alloc request size 18446744073709551608
> > CONTEXT:  while creating return value
> > PL/Python function "incr"
> 
> Fixed with additional error check and regression test.  (The problem
> could be more simply demonstrated by returning any non-sequence from the
> function.)  Thanks for catching it.

My last email claimed that the regression test needed some additional changes
to its expected output, and further claimed that it had the regression test's
diff attached. As was helpfully pointed out off-list, it actually wasn't
attached. Trying again..

-- Josh
В списке pgsql-hackers по дате отправления
От: Dimitri Fontaine
Дата:
Сообщение: Re: Page-level version upgrade
От: Robert Haas
Дата:
FAQ