Re: Bug in plpython's Python Generators

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: Bug in plpython's Python Generators
Дата
Msg-id
1287686694-sup-8959@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
Bug in plpython's Python Generators Jean-Baptiste Quenot <jbq@caraldi.com>
Re: Bug in plpython's Python Generators Alvaro Herrera <alvherre@commandprompt.com>
Re: Bug in plpython's Python Generators Alvaro Herrera <alvherre@commandprompt.com>
Re: Bug in plpython's Python Generators Jan Urbański <wulczer@wulczer.org>
Re: Bug in plpython's Python Generators Jan Urbański <wulczer@wulczer.org>
Re: Bug in plpython's Python Generators Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in plpython's Python Generators Oleg Bartunov <oleg@sai.msu.su>
Re: Bug in plpython's Python Generators Marti Raudsepp <marti@juffo.org>
Excerpts from Alvaro Herrera's message of jue oct 21 15:32:53 -0300 2010:
> Excerpts from Jean-Baptiste Quenot's message of jue oct 21 09:20:16 -0300 2010:
> 
> > I get this error when calling the function:
> > 
> > test=# select foobar();
> > ERROR:  error fetching next item from iterator
> 
> I can reproduce this here.  The first bug to solve is, I think, getting
> a more meaningful error report.

Something like this.  Somebody that really knows their way around Python
has to clean this up.

alvherre=# select * from foobar();
ERROR:  error extrayendo el próximo elemento del iterador
CONTEXTO:  falló SPI_execute: SPI_ERROR_UNCONNECTED
función PL/Python «foobar»

I think all error cases in plpython need some improvement so that they
show the error message from Python.  Right now they are ignored.

... and presumably somebody can fix the real bug that Jean-Baptiste hit,
too.

-- 
Álvaro Herrera 
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Cédric Villemain
Дата:
FAQ