Re: ALTER TABLE & COLUMN

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Ça??l ?eker <cagils(at)biznet(dot)com(dot)tr>, "PostgreSQL-General-List (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ALTER TABLE & COLUMN
Date: 2002-11-30 03:37:00
Message-ID: 20021130033659.GB15558@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 29, 2002 at 03:22:06PM -0500, Neil Conway wrote:

> Since a lot of data type changes are not obvious (how do you convert the
> data from one type to another, in all cases?), I don't see a real
> problem leaving this in the hands of the admin. The one exception might
> be changing the length limit on a varchar(n) column, but that's such a
> small case I'm not sure it's worth the bother (and can be done by
> hacking the system catalogs anyway).

I agree with you that generally changing datatypes is a task best left
to the DBA, but in case of CHAR/VARCHAR length and probably NUMERIC
length/precision it would be very nice to have some kind of "syntactic
sugar". Figuring out NUMERIC's atttypmod is not what I'd call trivial,
let alone change it. Sure, it may be for you, but...

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Los dioses no protegen a los insensatos. Éstos reciben protección de
otros insensatos mejor dotados" (Luis Wu, Mundo Anillo)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-11-30 04:24:08 Re: Locale-dependent case conversion in {identifier}
Previous Message Philip Warner 2002-11-30 01:40:56 Re: 7.4 Wishlist