Re: [GENERAL] DROP column: documentation unclear

2010-03-09 Thread Tom Lane
Harald Fuchs writes: > Martijn van Oosterhout writes: >> What you're missing is that in postgres NULLs are stored as a bit in >> the header and there is no data. So in a sense NULLs take no space >> (well, one bit) which means both statements are true. > But if you already have eight nullable co

Re: [GENERAL] DROP column: documentation unclear

2010-03-09 Thread Harald Fuchs
In article <20100308213549.gb...@svana.org>, Martijn van Oosterhout writes: >> "subsequent ... will store a null value" would imply that deleted columns >> will still take some place, while "the space will be reclaimed ..." would >> suggest that new rows (insert or updates in mvcc) don't have t

Re: [GENERAL] DROP column: documentation unclear

2010-03-08 Thread Martijn van Oosterhout
On Mon, Mar 08, 2010 at 05:09:14PM +0100, Adrian von Bidder wrote: > Hi, > > The documentation about DROP COLUMN is a bit unclear: > > | The DROP COLUMN form does not physically remove the column, but simply > | makes it invisible to SQL operations. Subsequent insert and update > | operations in

[GENERAL] DROP column: documentation unclear

2010-03-08 Thread Adrian von Bidder
Hi, The documentation about DROP COLUMN is a bit unclear: | The DROP COLUMN form does not physically remove the column, but simply | makes it invisible to SQL operations. Subsequent insert and update | operations in the table will store a null value for the column. Thus, | dropping a column is qu