From: Michiel Lange <michiel@minas.demon.nl>
To: Devi Munandar <devi@informatika.lipi.go.id>
Cc: pgsql-admin@postgresql.org
Subject: Re: change field type and length
Date: Fri, 18 Apr 2003 07:23:32 +0200
Message-ID: <5.1.0.14.0.20030418072201.00b3b450@192.168.1.3> (raw)
In-Reply-To: <003301c30569$43003d60$a6f0cda7@informatika.lipi.go.id>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: michiel@minas.demon.nl, devi@informatika.lipi.go.id
Subject: Re: change field type and length
In-Reply-To: <5.1.0.14.0.20030418072201.00b3b450@192.168.1.3>
References: <003301c30569$43003d60$a6f0cda7@informatika.lipi.go.id> <5.1.0.14.0.20030418072201.00b3b450@192.168.1.3>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox