X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A074ED1D0B7 for ; Wed, 20 Aug 2003 11:07:00 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 61096-06 for ; Wed, 20 Aug 2003 11:06:50 -0300 (ADT) Received: from mailhub.mail.Virginia.EDU (mail.Virginia.EDU [128.143.2.9]) by svr1.postgresql.org (Postfix) with ESMTP id 7214DD1BB7E for ; Wed, 20 Aug 2003 11:06:46 -0300 (ADT) Received: from smtp.mail.Virginia.EDU (smtp.mail.Virginia.EDU [128.143.22.52]) by mailhub.mail.Virginia.EDU (Postfix) with ESMTP id F0B89923DD; Wed, 20 Aug 2003 10:06:50 -0400 (EDT) Received: from virginia.edu (d-137-133-128.bootp.Virginia.EDU [137.54.133.128]) by smtp.mail.Virginia.EDU (8.11.7/8.11.6) with ESMTP id h7KE6nl08724; Wed, 20 Aug 2003 10:06:50 -0400 Message-ID: <3F4382C6.3030101@virginia.edu> Date: Wed, 20 Aug 2003 10:16:38 -0400 From: Jodi Kanter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Gaetano Mendola Cc: pgsql-admin@postgresql.org Subject: Re: changing field length References: <3F426DB0.1040607@virginia.edu> <000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org> Content-Type: multipart/alternative; boundary="------------040902090108080807000103" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/212 X-Sequence-Number: 9933 --------------040902090108080807000103 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit how do I copy from one field to another? Gaetano Mendola wrote: >"Jodi Kanter" wrote: > >>I am running 7.3.3. Can I change a field that is varying character(128) >>to varying character(250)? >> > >nope. > >You can > a) create a new column named tmp of character(250). > b) copy the content from old column to new column > c) drop the old column > d) rename the tmp column to the correct name > > >Regards >Gaeatano Mendola > >PS: Be carefull with the constraint.... > > > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > -- _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu --------------040902090108080807000103 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit how do I copy from one field to another?

Gaetano Mendola wrote:
"Jodi Kanter" <jkanter@virginia.edu> wrote:
I am running 7.3.3. Can I change a field that is varying character(128) 
to varying character(250)?

nope.

You can
a) create a new column named tmp of character(250).
b) copy the content from old column to new column
c) drop the old column
d) rename the tmp column to the correct name


Regards
Gaeatano Mendola

PS: Be carefull with the constraint....



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

--
________________________________

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu


 

 

 


--------------040902090108080807000103--