Re: change field type and length

From: Michiel Lange <michiel(at)minas(dot)demon(dot)nl>
To: "Devi Munandar" <devi(at)informatika(dot)lipi(dot)go(dot)id>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: change field type and length
Date: 2003-04-18 05:23:32
Message-ID: 5.1.0.14.0.20030418072201.00b3b450@192.168.1.3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I've been looking at it too, and my idea is that this is not possible. Only
a dump and load would do the trick...
if the data-types are compatible of course...

Michiel
At 12:13 18-4-2003 +0700, Devi Munandar wrote:
>I've created table with postgresql, and so far so good, but I want to change
>Field type and field length, I've tried to find command line and
>documentation postgresql to change table field, but I can't get it. so there
>are any trip to change that field...?
>
>CREATE TABLE "dat_jab" (
> "code_jab" numeric(2,0) NOT NULL,
> "nm_jab" varchar(25),
> CONSTRAINT "dat_jab_pkey" PRIMARY KEY ("code_jab")
>);
>CREATE INDEX "dat_jab_code_jab_key" ON "dat_jab" ("code_jab");
>
>*** want to change Field Type "code_jab" numeric(4.0) , and field name
>"nm_jab" -->"nm_cdjab"
>
>
>regards
>
>--dv
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2003-04-18 05:51:47 Re: change field type and length
Previous Message Devi Munandar 2003-04-18 05:13:34 change field type and length