Re: changing varchar limits

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Jeff Davis <list-pgsql-general(at)empires(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: changing varchar limits
Date: 2002-08-01 22:01:49
Message-ID: 20020801150041.T32757-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 1 Aug 2002, Jeff Davis wrote:

> What's the easiest way to change the allowable length of a varchar attribute?
>
> I looked in pg_attribute and noticed that the allowable length of the varchar
> (+4 bytes for the actual length, presumably) was the atttypemod attribute of
> the pg_attribute relation. Is it safe to change that? I would of course need
> to be a superuser.

That should be safe to change. If you're lowering it, you should make
sure the data fits.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eliel Mamousette 2002-08-01 23:33:35 Any last hope advice?
Previous Message Yuriy S. Polyakov 2002-08-01 21:56:25 _return double dimension array (table) from PLpgSQL procedure