Re: Domains

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Peter <peterpub1(at)aboutsupport(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Domains
Date: 2006-02-18 17:12:07
Message-ID: 20060218090855.F6652@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 18 Feb 2006, Peter wrote:

> Hello,
>
> I am migrating to postgresql from another database. I want to take
> advantage of using domains. Let's suppose I create domain
> 'email'(varchar 128). Then I change my mind and want to increase all
> columnst that have type 'emaill' to varchar(255). How do I change the
> domain 'email' to the new datatype. I can not figure how to do it with
> "alter domain" syntax.

It doesn't look like alter domain currenly has type changing support, so I
don't think you can do this (in general) right now. Some conversions
might be possible with direct alterations to system tables, but that's a
bit dangerous. I don't know if anyone's working on this right now either,
but it sounds reasonable (now that we have table column type changing).

In response to

  • Domains at 2006-02-18 11:02:18 from Peter

Responses

  • Re: Domains at 2006-02-19 00:18:49 from Michael Glaesemann

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2006-02-18 17:57:32 Re: Mixing different LC_COLLATE and database encodings
Previous Message Bill Moseley 2006-02-18 16:28:16 Re: Mixing different LC_COLLATE and database encodings