ppmichalakk(at)gmail(dot)com writes:
> pmichalak=# create function a() returns setof record as $$
> return { 'a': 2, 'b': 3 }
> $$ language plpythonu;
> CREATE FUNCTION
> pmichalak=# select * from a() as (b integer, c integer);
> ERROR: input of anonymous composite types is not implemented
> CONTEXT: while creating return value
> PL/Python function "a"
> pmichalak=# select * from a() as (b integer, c integer);
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
Fixed, thanks for the report!
regards, tom lane