pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: sandhya <sandhyar@amiindia.co.in>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: alter column type
Date: Thu, 13 Apr 2006 10:05:51 -0500
Message-ID: <20060413150551.GR49405@pervasive.com> (raw)
In-Reply-To: <00e301c65c83$3f49a520$cd00000a@sandhyar>
References: <00e301c65c83$3f49a520$cd00000a@sandhyar>

About the only thing you need to consider is that changing the type of a
column will re-write the entire table, and I'm pretty sure it will hold
an exclusive lock during that process.

On Mon, Apr 10, 2006 at 03:13:38PM +0530, sandhya wrote:
> Hi..
>   If i want to change the datatype of a column in a table.....What are all the thigs i need to take care off.
> After somany records insertion if i change the datatype of the column..What will be the effect of it.
> Please tell me /give suggestion what needs to be cosider at the time of changing column type of a table.
> 
> Incase of  int to char/varchar/text/ etc.
> What are the different datatypes we should think about?
> 
> Thank you,
> Sandhya
> 
> 
> 
> 

-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (2+ messages)

Message-ID: <20060413150551.GR49405@pervasive.com>
Permalink:  ../20060413150551.GR49405@pervasive.com/
Also on:    postgresql.org/message-id/20060413150551.GR49405@pervasive.com

 · 

reply

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: jnasby@pervasive.com, sandhyar@amiindia.co.in
  Subject: Re: alter column type
  In-Reply-To: <20060413150551.GR49405@pervasive.com>
  References: <00e301c65c83$3f49a520$cd00000a@sandhyar> <20060413150551.GR49405@pervasive.com>

* 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