Skip site navigation (1) Skip section navigation (2)

alter table alter column to resize a varchar

From: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
To: pgsql-admin(at)postgresql(dot)org
Subject: alter table alter column to resize a varchar
Date: 2012-09-27 09:23:57
Message-ID: 201209271023.57710.gary.stainburn@ringways.co.uk (view raw or flat)
Thread:
Lists: pgsql-admin
Hi folks.

I'm planning on extending a field in one of my main tables using:

alter table stock alter column type varchar(255);

to extend it from the current varchar(80).  My concern is that this table and 
this field is used in a number of views, and views of views.

Are then any gotchas that I need to worry about or things I need to check, or 
will it just work?

Gary
-- 
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk 


Responses

pgsql-admin by date

Next:From: Craig JamesDate: 2012-09-27 14:49:53
Subject: Re: alter table alter column to resize a varchar
Previous:From: Tom LaneDate: 2012-09-26 23:08:17
Subject: Re: Debian Squeeze - no xml support for Pg 9.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group