| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Lewis Kapell <lkapell(at)setonhome(dot)org> |
| Cc: | Eric Comeau <ecomeau(at)signiant(dot)com>, pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Increasing the length of a VARCHAR column without table rewrite |
| Date: | 2009-10-23 15:31:13 |
| Message-ID: | 20091023153113.GD355@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Lewis Kapell wrote:
> Eric,
>
> Is the table in question so large that you can't afford the time it
> would take to perform ALTER COLUMN TYPE?
>
> I definitely would not go poking around in system catalogs and
> changing things there. Not unless you *want* to trash your
> database... The fact that 'todo' has not yet been implemented
> suggests that it is not a simple matter of changing one attribute in
> a system catalog.
Well, it is (in this case at least) -- the problem is that we want a
general solution, not one that only applies to the particular problem of
widening a column's max length.
(When playing with this, however, note that the modified table may need
a toast table that may not be there).
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Anj Adu | 2009-10-23 22:00:15 | upgrading postgres version |
| Previous Message | Lewis Kapell | 2009-10-23 15:22:17 | Re: Increasing the length of a VARCHAR column without table rewrite |