Re: plpython crash

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Jean-Baptiste Quenot <jbq(at)caraldi(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plpython crash
Date: 2011-08-16 15:35:05
Message-ID: 4E4A8E29.8000303@wulczer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16/08/11 17:06, Jan Urbański wrote:
> 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?

I did a couple of simple tests and can't see how can the code not skip
dropped columns.

It seems like you're missing this commit:

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=41282111e6cc73aca4b63dffe950ba7a63e4bd8a

Could you try running this query? (assuming your function is called
'myfync')

select proname, relname, attname, attisdropped from pg_proc join
pg_class on (prorettype = reltype) join pg_attribute on (attrelid =
pg_class.oid) where proname = 'myfunc';

Cheers,
Jan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2011-08-16 16:01:39 Re: synchronized snapshots
Previous Message Steve Singer 2011-08-16 15:24:24 Re: Online base backup from the hot-standby