X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 79E3B5E3F15 for ; Mon, 16 Aug 2004 23:46:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56129-08 for ; Tue, 17 Aug 2004 02:45:58 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 3CEA75E3639 for ; Mon, 16 Aug 2004 23:45:54 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i7H2jqN03343; Mon, 16 Aug 2004 22:45:52 -0400 (EDT) From: Bruce Momjian Message-Id: <200408170245.i7H2jqN03343@candle.pha.pa.us> Subject: Re: Type implemented in plpythonu crashes backend In-Reply-To: <28793.1092596530@sss.pgh.pa.us> To: Tom Lane Date: Mon, 16 Aug 2004 22:45:52 -0400 (EDT) Cc: pgsql@groks.org, pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/24 X-Sequence-Number: 5072 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, Pennsylvania 19073