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 5ACFC5E46BF for ; Sun, 15 Aug 2004 16:02:18 -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 71235-04 for ; Sun, 15 Aug 2004 19:02:13 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A14235E46C0 for ; Sun, 15 Aug 2004 16:02:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7FJ2BYa028794; Sun, 15 Aug 2004 15:02:11 -0400 (EDT) To: pgsql@groks.org Cc: pgsql-interfaces@postgresql.org Subject: Re: Type implemented in plpythonu crashes backend In-reply-to: <1092210515.2350.100.camel@january.e-complex.ca> References: <1092210515.2350.100.camel@january.e-complex.ca> Comments: In-reply-to pgsql@groks.org message dated "Wed, 11 Aug 2004 01:48:35 -0600" Date: Sun, 15 Aug 2004 15:02:10 -0400 Message-ID: <28793.1092596530@sss.pgh.pa.us> From: Tom Lane 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/20 X-Sequence-Number: 5068 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