changing varchar limits

From: Jeff Davis <list-pgsql-general(at)empires(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: changing varchar limits
Date: 2002-08-01 21:11:41
Message-ID: 200208011411.41750.list-pgsql-general@empires.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Regards,
Jeff

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Yuriy S. Polyakov 2002-08-01 21:56:25 _return double dimension array (table) from PLpgSQL procedure
Previous Message Robert Treat 2002-08-01 21:07:12 Re: Referential integrity doesn't work?