> >> I agree, I haven't thought of drop column :-( Drop column should
have 
> >> relabeled attnum. Since it was not done then, my comments are 
> >> probably moot.
> >
> > We can correct this problem now.
> 
> How?  If attnum is serving as both physical position and 
> logical order, how can you make it be logical position 
> without breaking physical position?

If you ask me, attnum would be the logical position and would be used
in all other system tables. attphypos would only be used in
pg_attribute.
It would be quite some work to rearrange attnum in all system tables for
"drop column" and "add column before", but it would be nice for jdbc.

But it seems others want this: attnum beeing an arbitrary number,
that is used in all system tables and 2 extra columns in pg_attribute,
one for logical position and one for physical position.
If you want a corresponding colname to a pg_index attnum you need a map.

Andreas

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to