Re: [HACKERS] Bug in DROP NOT NULL

2005-04-04 Thread Alvaro Herrera
On Mon, Apr 04, 2005 at 10:17:40PM +0800, Christopher Kings-Lynne wrote: > >>I don't think that's a bug. You may not intend ever to cluster on that > >>index again, and if you try it will tell you about the problem. > > > > > >Except it breaks the 'cluster everything' case: > > > >test=# cluster;

Re: [HACKERS] Bug in DROP NOT NULL

2005-04-04 Thread Christopher Kings-Lynne
I don't think that's a bug. You may not intend ever to cluster on that index again, and if you try it will tell you about the problem. Except it breaks the 'cluster everything' case: test=# cluster; ERROR: cannot cluster when index access method does not handle null values HINT: You may be able

Re: [HACKERS] Bug in DROP NOT NULL

2005-03-31 Thread Christopher Kings-Lynne
I don't think that's a bug. You may not intend ever to cluster on that index again, and if you try it will tell you about the problem. Except it breaks the 'cluster everything' case: test=# cluster; ERROR: cannot cluster when index access method does not handle null values HINT: You may be able

Re: [HACKERS] Bug in DROP NOT NULL

2005-03-31 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: >> You can drop a NOT NULL on a column, even if that column is part of an >> index that is clustered, where the index does not index NULLs. I don't think that's a bug. You may not intend ever to cluster on that index again, and if you try it wi

Re: [HACKERS] Bug in DROP NOT NULL

2005-03-31 Thread Christopher Kings-Lynne
Sorry, was in a rush before. I still don't have time to fix this for 8.0.2, so that's why I rushed out the report. Here is a full description... You can drop a NOT NULL on a column, even if that column is part of an index that is clustered, where the index does not index NULLs. First, install

[HACKERS] Bug in DROP NOT NULL

2005-03-31 Thread Christopher Kings-Lynne
You can drop a NOT NULL on a column, even if that column is part of an index that is clustered, where the index does not index NULLs. Also, I dont think that ALTER TABLE blah CLUSTER ON foo; actually warns about clustering a non-null indexing index. However, CLUSTER foo ON blah; does. Chris -