Re: alter column witdh

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: alter column witdh
Date: 2003-05-27 15:17:20
Message-ID: 5.2.0.9.0.20030527111114.037fd930@pop6.sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 10:38 AM 5/27/03, Eric Anderson Vianet SAO wrote:
>how can I alter the column width

http://techdocs.postgresql.org/techdocs/updatingcolumns.php

fbax=# create table tablename (columnname text);
CREATE
fbax=# \d tablename
Table "tablename"
Attribute | Type | Modifier
------------+------+----------
columnname | text |

fbax=# \q

pg_dump -o -c -s -t tablename fbax | sed "s:\"columnname\"
text:\"columnname\" varchar(2):" | psql

Frank

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Eric Anderson Vianet SAO 2003-05-27 15:34:23 Re: discover a toast table name
Previous Message Wei Weng 2003-05-27 15:11:51 Re: [SQL] Perl Book