pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Franco Bruno Borghesi <franco@akyasociados.com.ar>
To: Theodore Petrosky <tedpet5@yahoo.com>
Cc: mohan@physics.gmu.edu
Cc: pgsql-sql@postgresql.org
Subject: Re: URGENT!!! changing Column size
Date: Tue, 28 Oct 2003 10:28:50 -0300
Message-ID: <1067347729.756.0.camel@taz> (raw)
In-Reply-To: <20031028130052.54133.qmail@web41010.mail.yahoo.com>
References: <20031028130052.54133.qmail@web41010.mail.yahoo.com>

Dopping the whole database just for a column change? 

On Tue, 2003-10-28 at 10:00, Theodore Petrosky wrote:

> 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/
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html
> 

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (10+ messages)  latest in thread

Message-ID: <1067347729.756.0.camel@taz>
Permalink:  ../1067347729.756.0.camel@taz/
Also on:    postgresql.org/message-id/1067347729.756.0.camel@taz

 · 

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: franco@akyasociados.com.ar, tedpet5@yahoo.com, mohan@physics.gmu.edu
  Subject: Re: URGENT!!! changing Column size
  In-Reply-To: <1067347729.756.0.camel@taz>

* 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