Re: changing field length

From: Jodi Kanter <jkanter(at)virginia(dot)edu>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: Gaetano Mendola <mendola(at)bigfoot(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: changing field length
Date: 2003-08-20 14:49:08
Message-ID: 3F438A64.8030206@virginia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

can I now make this field not null?

is it possible to move a field up in a table? now that I have done this
move the new field is at the bottom of the list of fields. From time to
time we have had to make changes to our schema so I will rerun our
script and do a pg_dump of the data only and then restore the data from
within psql. This new field in the dump is in a different location then
it is when the script runs. I expect this will cause an error. I am
doing pg_dumps with the following: -Rau
I realize I can move it down in the script but was wondering if there
were another solution. Logically it makes sense to list it toward the
top of the table.

Thanks
Jodi

Bruno Wolff III wrote:

>On Wed, Aug 20, 2003 at 10:16:38 -0400,
> Jodi Kanter <jkanter(at)virginia(dot)edu> wrote:
>
>>how do I copy from one field to another?
>>
>
>update tablename set newcol = oldcol;
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter(at)virginia(dot)edu <mailto:jkanter(at)virginia(dot)edu>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2003-08-20 14:58:47 Re: changing field length
Previous Message Sam Barnett-Cormack 2003-08-20 14:43:48 Re: Sobig.f in the list