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