Alter Table phase 1 -- Please apply to 7.5

Lists: pgsql-patches
From: Rod Taylor <pg(at)rbt(dot)ca>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Alter Table phase 1 -- Please apply to 7.5
Date: 2003-11-16 21:58:43
Message-ID: 1069019922.21552.75.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Completes:
ALTER TABLE ADD COLUMN does not honour DEFAULT and non-CHECK
CONSTRAINT

ALTER TABLE ADD COLUMN column DEFAULT should fill existing rows
with DEFAULT value

ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence
because of the item above

Previously described reorganization of all ALTER TABLE commands.

Most of the way through column type change. I need to supply a followup
patch which deals with logical attribute numbers.

ALTER TABLE table ALTER [COLUMN] column TYPE type USING expression;

Syntax documentation updates only. Content to come later.

Attachment Content-Type Size
altertable.patch.gz application/x-gzip 37.2 KB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Alter Table phase 1 -- Please apply to 7.5
Date: 2003-11-30 02:34:06
Message-ID: 200311300234.hAU2Y6e00145@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Rod Taylor wrote:
> Completes:
> ALTER TABLE ADD COLUMN does not honour DEFAULT and non-CHECK
> CONSTRAINT
>
> ALTER TABLE ADD COLUMN column DEFAULT should fill existing rows
> with DEFAULT value
>
> ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence
> because of the item above
>
> Previously described reorganization of all ALTER TABLE commands.
>
> Most of the way through column type change. I need to supply a followup
> patch which deals with logical attribute numbers.
>
> ALTER TABLE table ALTER [COLUMN] column TYPE type USING expression;
>
> Syntax documentation updates only. Content to come later.

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Alter Table phase 1 -- Please apply to 7.5
Date: 2004-01-06 10:43:29
Message-ID: 200401061043.i06AhTt06523@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Rod Taylor wrote:
> Completes:
> ALTER TABLE ADD COLUMN does not honour DEFAULT and non-CHECK
> CONSTRAINT
>
> ALTER TABLE ADD COLUMN column DEFAULT should fill existing rows
> with DEFAULT value
>
> ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence
> because of the item above
>
> Previously described reorganization of all ALTER TABLE commands.
>
> Most of the way through column type change. I need to supply a followup
> patch which deals with logical attribute numbers.
>
> ALTER TABLE table ALTER [COLUMN] column TYPE type USING expression;
>
> Syntax documentation updates only. Content to come later.

Tom has looked over this patch and wants to make some adjustments before
applying so I will keep this in my queue and wait for him to complete
his changes and get it into CVS.

Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Alter Table phase 1 -- Please apply to 7.5
Date: 2004-05-06 19:31:56
Message-ID: 200405061931.i46JVuo13589@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


Patch applied with adjustments by Tom. Thanks.

---------------------------------------------------------------------------

Rod Taylor wrote:
> Completes:
> ALTER TABLE ADD COLUMN does not honour DEFAULT and non-CHECK
> CONSTRAINT
>
> ALTER TABLE ADD COLUMN column DEFAULT should fill existing rows
> with DEFAULT value
>
> ALTER TABLE ADD COLUMN column SERIAL doesn't create sequence
> because of the item above
>
> Previously described reorganization of all ALTER TABLE commands.
>
> Most of the way through column type change. I need to supply a followup
> patch which deals with logical attribute numbers.
>
> ALTER TABLE table ALTER [COLUMN] column TYPE type USING expression;
>
> Syntax documentation updates only. Content to come later.

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073