pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: ROUWEZ Stephane <stephane.rouwez@ecolo.be>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Cc: LESNE Philippe <philippe.lesne@ecolo.be>
Subject: Re: Change size of a field
Date: Fri, 26 Jul 2002 16:20:55 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0207261619410.7428-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0207261546030.7428-100000@matrix.gatewaynet.com>

On Fri, 26 Jul 2002, Achilleus Mantzios wrote:

I forgot!

> 1) % pg_dump -t <tablename> <dbname> > <tablename>-DUMP.sql
> 2) % psql
>    # drop sequence <tablename>_id_seq;

==>> # drop table <tablename>;

> 3) vi <tablename>-DUMP.sql
>    change your varchar(50) to varchar(80)
> 4) psql
>    #\i <tablename>-DUMP.sql

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0207261619410.7428-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0207261619410.7428-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0207261619410.7428-100000@matrix.gatewaynet.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: achill@matrix.gatewaynet.com, stephane.rouwez@ecolo.be, philippe.lesne@ecolo.be
  Subject: Re: Change size of a field
  In-Reply-To: <Pine.LNX.4.44.0207261619410.7428-100000@matrix.gatewaynet.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