Re: [ADMIN] Different results when specifying DEFAULT values through

2006-04-20 Thread Thusitha Kodikara
Thanks Stephan. That appears to be the reason for the differences.-ThusithaStephan Szabo <[EMAIL PROTECTED]> wrote: On Wed, 19 Apr 2006, Thusitha Kodikara wrote:> Hi,>> I observed the following on PostgreSQL 8.1.3 (on Windows 2000).>> (1) alter table invoice add column active boolean default true;>

Re: [ADMIN] Different results when specifying DEFAULT values through

2006-04-19 Thread Stephan Szabo
On Wed, 19 Apr 2006, Thusitha Kodikara wrote: > Hi, > > I observed the following on PostgreSQL 8.1.3 (on Windows 2000). > > (1) alter table invoice add column active boolean default true; > > This will add a new column "active" with a default clause as "true" and > also sets the value "true" to al

[ADMIN] Different results when specifying DEFAULT values through ALTER TABLE

2006-04-19 Thread Thusitha Kodikara
Hi, I observed the following on PostgreSQL 8.1.3 (on Windows 2000). (1) alter table invoice add column active boolean default true; This will add a new column "active" with a default clause as "true" and also sets the value "true" to all existing rows of the table. BUT (2) ALTER TABLE invoice