X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A2878475E14 for ; Mon, 12 May 2003 16:58:17 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id DD3A6475A80 for ; Mon, 12 May 2003 16:58:12 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 35E86D64C; Mon, 12 May 2003 13:58:14 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 2B8C35C0A; Mon, 12 May 2003 13:58:14 -0700 (PDT) Date: Mon, 12 May 2003 13:58:14 -0700 (PDT) From: Stephan Szabo To: John DeSoi Cc: Subject: Re: create type question In-Reply-To: <27BDDD9C-84BB-11D7-B522-0030656EE7B2@icx.net> Message-ID: <20030512135530.V15441-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-26.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/373 X-Sequence-Number: 42028 On Mon, 12 May 2003, John DeSoi wrote: > I would like to create a new column type that just holds a text string > (a lisp form). My only reason for creating a type is so that I can > distinguish this field type from text fields and perform some extended > processing when they are read by the client. > > Below is my first (newbie) attempt. Do I really have to do write > something in C to accomplish this? Is there any kind of type "alias" > feature? You might just want to make a domain, something like: create domain lisp as text;