RE: Change varchar lenght - Mailing list pgsql-novice

From Sykora, Dale
Subject RE: Change varchar lenght
Date
Msg-id 415DD0BB9FAFD011B6E700805FBEB68E057783D4@exchou-ca0801bk.im.hou.compaq.com
Whole thread Raw
In response to Change varchar lenght  (Eduardo <ekotuja@brasilnet.net>)
List pgsql-novice
Eduardo,

Since you are changing the table definition, I would do the following.
1. Make a temp table "identical to the original table1 except for the larger
varchar size."
2. Copy table1 to the temp table.
3. Drop table1.
4. Create new table1 identical to temp table.
5. Copy temp table to table1.
6. Drop temp table.

I am a fairly new user, so there may be a better way to do this.

Good Luck,
dale.sykora@compaq.com


-----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: Eduardo
Date:
Subject: Change varchar lenght
Next
From: Mark Cannata
Date:
Subject: Don't know where to begin