From: | Dave Page <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "'Timon Meyer'" <timon(at)mustek(dot)de>, pgadmin-support(at)postgresql(dot)org |
Subject: | Re: Problems changing type of column using pgAd |
Date: | 2001-12-18 15:25:04 |
Message-ID: | FED2B709E3270E4B903EB0175A49BCB104738C@dogbert.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
> -----Original Message-----
> From: Timon Meyer [mailto:timon(at)mustek(dot)de]
> Sent: 18 December 2001 14:41
> To: pgadmin-support(at)postgresql(dot)org
> Subject: [pgadmin-support] Problems changing type of column
> using pgAdmin...
>
>
> Hello,
>
> I am a beginner in using the pgAdmin for Windows and I have following
> question:
>
> once I have created a table and a column it is not possible
> to change the field type or size within pgAdmin. Only
> possible is to add or remove a column, the other fields or
> disabled. Is there any possibility to change the field size
> and/or type using pgAdmin? Or do I have to do it manually
> using the ALTER TABLE SQL command?
Hi,
It is not possible in PostgreSQL (and by extension, pgAdmin) to alter a
column type, or drop a column. The easiest way to do this is to pg_dump your
database to a text file, then edit & reload a copy of this file as required.
Of course, you must ensure that your data will reload into the modified
table - in particular beware of changing test columns to numeric (for
example) or making text columns shorter.
As soon as PostgreSQL supports this features (hopefully in 7.3) I will
update pgAdmin to take advantage of them.
Regards, Dave.
From | Date | Subject | |
---|---|---|---|
Next Message | Henshall, Stuart - WCP | 2001-12-18 15:25:15 | Re: Problems changing type of column using pgAd |
Previous Message | Timon Meyer | 2001-12-18 14:41:09 | Problems changing type of column using pgAdmin... |