pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <jd@icx.net>
To: pgsql-sql@postgresql.org
Subject: Re: A simple way to Create type ...?
Date: Tue, 16 Sep 2003 22:39:04 -0400
Message-ID: <1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net> (raw)
In-Reply-To: <60d6e0h1am.fsf@dev6.int.libertyrms.info>


On Tuesday, September 16, 2003, at 05:27 PM, Christopher Browne wrote:

> What you want instead is CREATE DOMAIN.
>
> flexreg=# create domain addresstype varchar(50);


The problem here is that you can't tell the difference between a 
addresstype column and a varchar(50) column in the row description 
information returned by SELECT. All columns just look like varchar(50). 
It would be nice if there was something as easy as CREATE DOMAIN but 
worked more like CREATE TYPE.

Best,

John DeSoi, Ph.D.




view thread (6+ messages)

Message-ID: <1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net>
Permalink:  ../1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net/
Also on:    postgresql.org/message-id/1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jd@icx.net
  Subject: Re: A simple way to Create type ...?
  In-Reply-To: <1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net>
  References: <60d6e0h1am.fsf@dev6.int.libertyrms.info> <1A568736-E8B8-11D7-87CD-0030656EE7B2@icx.net>

* 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