[HACKERS] Badly broken logic in plpython composite-type handling

2015-08-19 Thread Tom Lane
I looked into the crash reported in bug #13579. The proximate cause of the crash is that PLyString_ToComposite does this: PLy_output_datum_func2(info-out.d, typeTup, exec_ctx-curr_proc-langid, exec_ctx-curr_proc-trftypes); without any

Re: [HACKERS] Badly broken logic in plpython composite-type handling

2015-08-19 Thread Tom Lane
I wrote: I looked into the crash reported in bug #13579. The proximate cause of the crash is that PLyString_ToComposite does this: ... I'm inclined to think that maybe PLyString_ToComposite needs to be doing something more like what PLyObject_ToComposite does, ie doing its own lookup in a

Re: [HACKERS] Badly broken logic in plpython composite-type handling

2015-08-19 Thread Joshua D. Drake
On 08/19/2015 05:05 PM, Tom Lane wrote: Barring objections, I propose to commit and back-patch this. The crash can be demonstrated back to 9.1. regards, tom lane +1 -- Command Prompt, Inc. - http://www.commandprompt.com/ 503-667-4564 PostgreSQL Centered full