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

Re: Making a varchar bigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Derik Barclay <dbarclay(at)givex(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making a varchar bigger
Date: 2004-12-31 04:03:37
Message-ID: 1432.1104465817@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
Derik Barclay <dbarclay(at)givex(dot)com> writes:
> Specificaly I am looking at executing something like this:
> UPDATE pg_attribute SET atttypmod = 16 where attname = 'x' AND attrelid = 
> (select pg_class.oid from pg_class where relname = 'mytable');

If you have any indexes or views referencing this column, then it's a
bit harder.  But for the table itself I believe that will work.

			regards, tom lane

In response to

Responses

pgsql-general by date

Next:From: Tom LaneDate: 2004-12-31 04:14:20
Subject: Re: ISO_8859_8 encoding
Previous:From: Jason TesserDate: 2004-12-31 03:30:21
Subject: pgodbc error

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