Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 10A3C65029A for ; Wed, 30 Jul 2008 19:01:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80995-08 for ; Wed, 30 Jul 2008 19:01:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oxford.xeocode.com (87-127-95-198.no-dns-yet.enta.net [87.127.95.198]) by postgresql.org (Postfix) with ESMTP id 93C476501D6 for ; Wed, 30 Jul 2008 19:01:09 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.69) (envelope-from ) id 1KOJjH-0003AA-3Z; Wed, 30 Jul 2008 23:01:07 +0100 To: "Tom Lane" Cc: Subject: Re: Should creating a new base type require superuser status? In-Reply-To: <23742.1217453388@sss.pgh.pa.us> (Tom Lane's message of "Wed\, 30 Jul 2008 17\:29\:48 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.hackers" 25154) References: <19715.1217447413@sss.pgh.pa.us> <87sktrgjdj.fsf@oxford.xeocode.com> <23742.1217453388@sss.pgh.pa.us> From: Gregory Stark Organization: EnterpriseDB Date: Wed, 30 Jul 2008 23:01:06 +0100 Message-ID: <87od4fghgd.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.1 tagged_above=0 required=5 tests=RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 200807/1449 X-Sequence-Number: 121709 "Tom Lane" writes: >> As a consequence we could perhaps aim to make creating new types safe rather >> than just deal with the fact that it's not safe currently? It would be nice if >> non-superusers could create types which used an existing set of input/output >> functions but defined new semantics. > > Unless you're going to allow them to create new C functions, I'm not > clear on how much they're going to be able to change the semantics. Well there's plenty that can be done just using text or bytea as representations. citext, or uuid for example. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!