pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedalter column type
2+ messages / 2 participants
[nested] [flat]
* alter column type
@ 2006-04-10 09:43 sandhya <sandhyar@amiindia.co.in>
0 siblings, 1 reply; 2+ messages in thread
From: sandhya @ 2006-04-10 09:43 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: alter column type
@ 2006-04-13 15:05 Jim C. Nasby <jnasby@pervasive.com>
parent: sandhya <sandhyar@amiindia.co.in>
0 siblings, 0 replies; 2+ messages in thread
From: Jim C. Nasby @ 2006-04-13 15:05 UTC (permalink / raw)
To: sandhya <sandhyar@amiindia.co.in>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-04-13 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-10 09:43 alter column type sandhya <sandhyar@amiindia.co.in>
2006-04-13 15:05 ` Jim C. Nasby <jnasby@pervasive.com>
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