Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5C9F3475BC3 for ; Wed, 29 Jan 2003 17:46:41 -0500 (EST) Received: from mx1.pacifier.net (mx1.pacifier.net [64.255.237.181]) by postgresql.org (Postfix) with ESMTP id DFAE0475A7F for ; Wed, 29 Jan 2003 17:46:40 -0500 (EST) Received: from smtp4.pacifier.net (smtp4 [64.255.237.174]) by mx1.pacifier.net (Postfix) with ESMTP id 9EFF56B39B for ; Wed, 29 Jan 2003 14:46:42 -0800 (PST) Received: from mercury.johnpark.net (ip188.gte31.rb1.bel.nwlink.com [207.202.209.188]) by smtp4.pacifier.net (Postfix) with ESMTP id A2A2D6A447 for ; Wed, 29 Jan 2003 14:30:45 -0800 (PST) Received: from saturn (saturn.johnpark.net [192.168.1.11]) by mercury.johnpark.net (8.11.6/8.11.6) with ESMTP id h0TMkWo16001 for ; Wed, 29 Jan 2003 14:46:41 -0800 From: "Glen Parker" To: Subject: Dropping column silently kills multi-coumn index (was [ODBC] Error when accessing tables with deleted columns) Date: Wed, 29 Jan 2003 14:47:04 -0800 Message-ID: <02a501c2c7e8$5d6fe6f0$0b01a8c0@saturn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20030129221951.37439.qmail@web10703.mail.yahoo.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/1462 X-Sequence-Number: 36583 The other discussion made me try this out: > So the new dll did take out the delete column. I > assume that if you do a drop column that it removes > the associated index. (Obviously 7.3.* is involved here...) I did the following: oms=# create table __temp1(field1 varchar(10), field2 varchar(10)); CREATE TABLE oms=# create index __idx_temp1 on __temp1 (field1, field2); CREATE INDEX oms=# alter table __temp1 drop column field2; ALTER TABLE Note that the ALTER TABLE query succeeded *quietly* and did in fact drop the index. Is this intended behavior? Rather seems like it should refuse to drop an indexed column, or at least refuse to drop a culumn that's a member of a multi-culumm index and give notice when an index is dropped. I think I'd opt for the never-drop-an-indexed-column approach. Just an observation :-) Glen Parker glenebob@nwlink.com