Re: [HACKERS] ALTER TABLE ... ADD COLUMN - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: [HACKERS] ALTER TABLE ... ADD COLUMN
Date
Msg-id 20021005044623.7489cb32.alvherre@atentus.com
Whole thread Raw
Responses Re: [HACKERS] ALTER TABLE ... ADD COLUMN
Re: [HACKERS] ALTER TABLE ... ADD COLUMN
List pgsql-patches
En Fri, 4 Oct 2002 18:21:06 -0400
Alvaro Herrera <alvherre@atentus.com> escribió:

> Huh, I don't know where I got the idea you were (or someone else was?)
> in the position that attislocal should be reset.  I'll clean everything
> up and submit the patch I had originally made.

All right, this is it.  This patch merely checks if child tables have
the column.  If atttypid and atttypmod are the same, the attributes'
attinhcount is incremented; else the operation is aborted.  If child
tables don't have the column, recursively add it.

attislocal is not touched in any case.

--
Alvaro Herrera (<alvherre[a]atentus.com>)
"El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte"
(Ijon Tichy en Viajes, Stanislaw Lem)

Attachment

pgsql-patches by date:

Previous
From: Dennis Björklund
Date:
Subject: translation (sv) - new file: pg_resetxlog
Next
From: Bruce Momjian
Date:
Subject: Allow SET to not start a transaction