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

Re: unimplemented functions

From: Bill Montgomery <billm(at)lulu(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: unimplemented functions
Date: 2004-03-19 14:38:35
Message-ID: 405B05EB.90001@lulu.com (view raw or flat)
Thread:
Lists: pgsql-admin
chris(at)zenmgt(dot)com wrote:

> I'm new to postgres and pgadmin3 (on Windows XP).
>
> I've just tried to make a change to a table using pgAdmin3 (1.0.2) and 
> I get:-
>
> ---------------------------
> pgAdmin III
> ---------------------------
> An error has occured:
>
> ERROR:  adding columns with defaults is not implemented
> HINT:  Add the column, then use ALTER TABLE SET DEFAULT.
>
> ---------------------------
> OK
> ---------------------------
>
> When will this be fixed? Is this the right forum for discussing 
> unimplemented fuctions? Is there somewhere or someone specific to 
> point is out with?


Chris,

This isn't a pgadmin bug--it is a limitation of Postgres. You can't add 
a column to a table *and* set a default value for it all in one 
statement. Try the hint that is given: add the column, then alter the 
column to set the default value. You can read the details of using the 
ALTER command in the Postgres online documentation.

Regards,

Bill Montgomery

In response to

pgsql-admin by date

Next:From: Stephan SzaboDate: 2004-03-19 14:43:04
Subject: Re: create function problem
Previous:From: sachdevDate: 2004-03-19 13:44:50
Subject: date style

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