RE: Change varchar lenght - Mailing list pgsql-novice

From Sokel, John
Subject RE: Change varchar lenght
Date
Msg-id CAD59D8EA8B7124894637FC44951789F4970FA@scratchy.int.mdsi-usa.com
Whole thread Raw
In response to Change varchar lenght  (Eduardo <ekotuja@brasilnet.net>)
Responses windows ODBC driver for PG7.02  (igor <igor_kh@mailru.com>)
List pgsql-novice

I don't believe you can change the size of a column once it's created.  The best way is to recreate it.  Take a look at SELECT INTO for creating a backup table easily.  Then recreate the original table and INSERT INTO <original> SELECT * FROM <temp>.  Should be fairly painless.

-----Original Message-----
From: Eduardo [mailto:ekotuja@brasilnet.net]
Sent: Monday, September 11, 2000 3:17 PM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Change varchar lenght

 How can I change a field that is varchar(50) to varchar(500) ??
 I did not find in docs. And did not find that option in pgaccess .

 Thanks,
     Eduardo K

pgsql-novice by date:

Previous
From: patrick.wolf@Aerojet.com (WOLF, PATRICK)
Date:
Subject: RE: data entry
Next
From:
Date:
Subject: Re: data entry