X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 02A1FD1B99D for ; Tue, 19 Aug 2003 16:33:30 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 50103-02 for ; Tue, 19 Aug 2003 16:33:20 -0300 (ADT) Received: from megazone.bigpanda.com (45.mufb.snfc.sffca01r18.dsl.att.net [12.103.249.45]) by svr1.postgresql.org (Postfix) with ESMTP id 88FF4D1BA1A for ; Tue, 19 Aug 2003 16:33:14 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 68827D675; Tue, 19 Aug 2003 12:33:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 5E1D35C0B; Tue, 19 Aug 2003 12:33:00 -0700 (PDT) Date: Tue, 19 Aug 2003 12:33:00 -0700 (PDT) From: Stephan Szabo To: Jodi Kanter Cc: Postgres Admin List Subject: Re: changing field length In-Reply-To: <3F426DB0.1040607@virginia.edu> Message-ID: <20030819122924.O72868-100000@megazone.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/208 X-Sequence-Number: 9929 On Tue, 19 Aug 2003, Jodi Kanter wrote: > I am running 7.3.3. Can I change a field that is varying character(128) > to varying character(250)? You can either add a column, copy the data across and drop the old column and use rename to give the new column the old name or if you're willing to hack at system tables, you can change atttypmod in pg_attribute for the column from 132 (maxsize + 4 to hold the real size) to 254.