Re: preliminary: logical column order - Mailing list pgsql-patches

From Manfred Koizar
Subject Re: preliminary: logical column order
Date
Msg-id 5kd3svcfcgfl7lu9r5a7l7opon7bp8cqvu@email.aon.at
Whole thread Raw
In response to preliminary: logical column order  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
On Fri, 21 Nov 2003 03:09:02 -0500, Neil Conway <neilc@samurai.com> wrote:
>attachment; filename=weird_regression.diffs

This was caused by a small oversight in ALTER TABLE ... ADD COLUMN:

diff -ruN ../base/src/backend/commands/tablecmds.c src/backend/commands/tablecmds.c
--- ../base/src/backend/commands/tablecmds.c    2003-10-14 00:47:15.000000000 +0200
+++ src/backend/commands/tablecmds.c    2003-11-23 16:51:37.000000000 +0100
@@ -1786,6 +1786,7 @@
     attribute->attcacheoff = -1;
     attribute->atttypmod = colDef->typename->typmod;
     attribute->attnum = i;
+    attribute->attpos = i;
     attribute->attbyval = tform->typbyval;
     attribute->attndims = attndims;
     attribute->attisset = (bool) (tform->typtype == 'c');


Servus
 Manfred

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: internationalization of initdb
Next
From: "ViSolve Open Source Team"
Date:
Subject: (Modified) Patch request for PostgreSQL 7.4 for HP-UX IA-64