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

Re: Adding columns NOT NULL

From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Laurent ROCHE" <laurent_roche(at)yahoo(dot)com>
Cc: "pgAdmin III support" <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Adding columns NOT NULL
Date: 2008-03-11 09:09:12
Message-ID: 937d27e10803110209y4cc38f5bkfa97f10fc42aa8e1@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-support
On Fri, Mar 7, 2008 at 10:30 AM, Laurent ROCHE <laurent_roche(at)yahoo(dot)com> wrote:
>
> So I would suggest to generate the code:
> ALTER TABLE my_table ADD COLUMN my_col boolean NOT NULL DEFAULT false;

It actually does do this already if you add the column through the
table dialogue. I've fixed the column dialogue to do it when called
directly as well (for 1.8.3).

Thanks!

-- 
Dave Page
EnterpriseDB UK Ltd: http://www.enterprisedb.com
PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk

In response to

pgadmin-support by date

Next:From: Michael EschweilerDate: 2008-03-11 14:10:47
Subject: Re: Complete breakdown of pgadmin when trying to connect to server or modify properties of tables of views
Previous:From: Dave PageDate: 2008-03-11 08:49:04
Subject: Re: Complete breakdown of pgadmin when trying to connect to server or modify properties of tables of views

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