From: Bill Montgomery <billm@lulu.com>
To: pgsql-admin@postgresql.org
Subject: Re: unimplemented functions
Date: Fri, 19 Mar 2004 09:38:35 -0500
Message-ID: <405B05EB.90001@lulu.com> (raw)
In-Reply-To: <opr41qfqyl6gy8po@news.gmane.org>
References: <opr41qfqyl6gy8po@news.gmane.org>
chris@zenmgt.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: billm@lulu.com
Subject: Re: unimplemented functions
In-Reply-To: <405B05EB.90001@lulu.com>
References: <opr41qfqyl6gy8po@news.gmane.org> <405B05EB.90001@lulu.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