Re: Adding columns in the middle of tables - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Adding columns in the middle of tables
Date
Msg-id 20040905110754.J6722-100000@houston.familyhealth.com.au
Whole thread Raw
In response to Re: Adding columns in the middle of tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Given the 8.0 ALTER TABLE feature of being able to rewrite the whole
> table, one could now think about doing it without decoupling logical
> and physical numbers: just rewrite the table with the new column
> inserted in the proper place.  This moves the problem to a different
> area, which is being sure you have updated every place in the system
> catalogs and backend caches that references the old column numbers of
> the renumbered columns.  Again, doable in theory but a lot of work,
> and it introduces a bug hazard every time someone changes these data
> structures.

Ah, I hadn't considered the references issue.  Does make it quite hard :)



pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Adding columns in the middle of tables
Next
From: Shahbaz Javeed
Date:
Subject: Re: Developers page is down