pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Theodore Petrosky <tedpet5@yahoo.com>
To: mohan@physics.gmu.edu
To: pgsql-sql@postgresql.org
Subject: Re: URGENT!!! changing Column size
Date: Tue, 28 Oct 2003 05:00:52 -0800 (PST)
Message-ID: <20031028130052.54133.qmail@web41010.mail.yahoo.com> (raw)
In-Reply-To: <64184.138.88.163.115.1067274631.squirrel@physics.gmu.edu>

why not just

pg_dump dbname > olddb.out
pico olddb.out

edit the section that defines the table
save and exit

dropdb dbname
createdb dbname

psql dbname < olddb.out

no fuss no muss...

Ted

--- mohan@physics.gmu.edu wrote:
> Hi can we change the size of a column in postgres. I
> have a table named
> institution and column name is name varchar2(25), i
> want to change it to
> varchar2(50). Please let me know.
> 
> --Mohan
> 
> 
> 
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/



view thread (10+ messages)  latest in thread

Message-ID: <20031028130052.54133.qmail@web41010.mail.yahoo.com>
Permalink:  ../20031028130052.54133.qmail@web41010.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031028130052.54133.qmail@web41010.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tedpet5@yahoo.com, mohan@physics.gmu.edu
  Subject: Re: URGENT!!! changing Column size
  In-Reply-To: <20031028130052.54133.qmail@web41010.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox