X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5DBC1476340 for ; Fri, 18 Apr 2003 01:21:37 -0400 (EDT) Received: from smurfer.pastoraat (minas-2.demon.nl [212.238.194.105]) by postgresql.org (Postfix) with ESMTP id 4178C476385 for ; Fri, 18 Apr 2003 01:21:36 -0400 (EDT) Received: from depastor.minas.demon.nl (athlon.pastoraat [192.168.1.1]) by smurfer.pastoraat (8.12.8/8.12.4) with ESMTP id h3I5VUZ7005586; Fri, 18 Apr 2003 07:31:33 +0200 Message-Id: <5.1.0.14.0.20030418072201.00b3b450@192.168.1.3> X-Sender: michiel@192.168.1.3 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 18 Apr 2003 07:23:32 +0200 To: "Devi Munandar" From: Michiel Lange Subject: Re: change field type and length Cc: In-Reply-To: <003301c30569$43003d60$a6f0cda7@informatika.lipi.go.id> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Status: No, hits=-15.5 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/255 X-Sequence-Number: 8410 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