Re: Type implemented in plpythonu crashes backend - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: Type implemented in plpythonu crashes backend
Date
Msg-id 200408170245.i7H2jqN03343@candle.pha.pa.us
Whole thread Raw
In response to Re: Type implemented in plpythonu crashes backend  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Added to open items list:
* have plpython reject pseudotype arguments because it crashes

---------------------------------------------------------------------------

Tom Lane wrote:
> pgsql@groks.org writes:
> > I'd like to implement new postgres types in a language other than C for
> > prototyping speed.  plpgsql won't let me create a function which takes a
> > cstring, and neither will pltcl.  Happily, plpythonu will, and it seems
> > to work fine.
> 
> I'd say this is an oversight in the plpython code --- it should be
> rejecting pseudotype arguments, since as you've discovered it cannot
> really cope.  It should *certainly* reject "opaque" ... might be okay to
> allow cstring but I'm not sure.
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: C text to string issue
Next
From: Paul Tilles
Date:
Subject: Version 7.4.4