From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: John DeSoi <jd@icx.net>
Cc: pgsql-general@postgresql.org
Subject: Re: create type question
Date: Mon, 12 May 2003 13:58:14 -0700 (PDT)
Message-ID: <20030512135530.V15441-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <27BDDD9C-84BB-11D7-B522-0030656EE7B2@icx.net>
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;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, jd@icx.net, pgsql-general@postgresql.org
Subject: Re: create type question
In-Reply-To: <20030512135530.V15441-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox