Re: create type question

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: John DeSoi <jd(at)icx(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: create type question
Date: 2003-05-12 20:58:14
Message-ID: 20030512135530.V15441-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql


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;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kathy Zhu 2003-05-12 21:56:57 ctrl+C
Previous Message John DeSoi 2003-05-12 20:48:59 create type question

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-05-12 21:53:43 Re: Why this query does not work?
Previous Message John DeSoi 2003-05-12 20:48:59 create type question