Skip site navigation (1) Skip section navigation (2)

Re: BUG #2901: missing alter table online help in psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jens-Wolfhard Schicke" <j(dot)schicke(at)asco(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2901: missing alter table online help in psql
Date: 2007-01-16 16:49:01
Message-ID: 21380.1168966141@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Jens-Wolfhard Schicke" <j(dot)schicke(at)asco(dot)de> writes:
> \h alter table
> is missing the syntax for the command
> alter table the_table alter column the_column type varchar(175);

Maybe you're using an old psql?  My 8.2 psql shows

regression=> \h alter table
Command:     ALTER TABLE
Description: change the definition of a table
Syntax:
ALTER TABLE [ ONLY ] name [ * ]
    action [, ... ]
...
where action is one of:
...
    ALTER [ COLUMN ] column TYPE type [ USING expression ]
...


			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2007-01-16 17:34:06
Subject: Re: BUG #2848: information_schema.key_column_usage does not work
Previous:From: Jens-Wolfhard SchickeDate: 2007-01-16 13:49:33
Subject: BUG #2901: missing alter table online help in psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group