pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KÖPFERL Robert <robert.koepferl@sonorys.at>
To: pgsql-sql@postgresql.org
Subject: Re: Alias to a type
Date: Wed, 22 Jun 2005 16:42:19 +0200
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at> (raw)

Keep in mind, though. Using a DOMAIN in some definition 'seals' the domain.
Yo can't change the domain unless you drop all dependent objects

|-----Original Message-----
|From: Veikko Mäkinen [mailto:veikko.makinen@ecom.fi]
|Sent: Mittwoch, 22. Juni 2005 15:14
|To: pgsql-sql@postgresql.org
|Subject: Re: [SQL] Alias to a type
|
|
|Richard Huxton wrote:
|> Veikko Mäkinen wrote:
|> 
|>> Hey,
|>>
|>> Is it possible to create a new type as an alias to a 
|pre-defined type? 
|>> I use "USERID varchar(20)" in almost every table I have I'd like to 
|>> make an alias for that type eg.
|> 
|> 
|> CREATE DOMAIN username_string AS varchar(20);
|> 
|> Test it with your client applications though, make sure they 
|cope. Some 
|> don't cope well with user-defined types.
|
|
|Splendid, thank you all :) I'm quite sure loosely typed PHP can cope 
|with my user-defined types ;)
|
|But now I need a better modeling tool because Azzurri Clay 1.1 
|(Eclipse 
|plug-in) doesn't let me define new types... Any suggestions? SQL DDL 
|generation is the only demand I really have.
|
|
|-veikko
|
|
|---------------------------(end of 
|broadcast)---------------------------
|TIP 3: if posting/reading through Usenet, please send an appropriate
|       subscribe-nomail command to majordomo@postgresql.org so 
|that your
|       message can get through to the mailing list cleanly
|



view thread (8+ messages)

Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at>
Permalink:  ../ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at/
Also on:    postgresql.org/message-id/ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at

 · 

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: robert.koepferl@sonorys.at
  Subject: Re: Alias to a type
  In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at>
  References: <ED4E30DD9C43D5118DFB00508BBBA76EB1678C@neptun.sonorys.at>

* 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