Re: plpython crash - Mailing list pgsql-hackers

From Jan Urbański
Subject Re: plpython crash
Date
Msg-id 4E4A877D.3000700@wulczer.org
Whole thread Raw
In response to Re: plpython crash  (Jean-Baptiste Quenot <jbq@caraldi.com>)
Responses Re: plpython crash
List pgsql-hackers
On 16/08/11 16:52, Jean-Baptiste Quenot wrote:
> After backporting plpython.c from HEAD, this is the error message I get:
> 
> ERROR:  key "........pg.dropped.6........" not found in mapping
> HINT:  To return null in a column, add the value None to the mapping
> with the key named after the column.
> CONTEXT:  while creating return value
> PL/Python function "myfunc"
> 
> What does it mean?

Ah, interesting, I think that this means that you are returning a table
type and that table has a dropped column. The code should skip over
dropped columns, but apparently it does not and tries to find a value
for that column in the mapping you are returning.

I'll try to reproduce it here.

Jan


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: some missing internationalization in pg_basebackup
Next
From: Peter Geoghegan
Date:
Subject: Re: Re: Should we have an optional limit on the recursion depth of recursive CTEs?