Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA29366 for ; Tue, 26 Oct 1999 01:01:53 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id AAA20176; Tue, 26 Oct 1999 00:55:03 -0400 (EDT) From: Bruce Momjian Message-Id: <199910260455.AAA20176@candle.pha.pa.us> Subject: Re: [SQL] possible bug? In-Reply-To: <19991025044858.A15895@ilse.nl> from Mathijs Brands at "Oct 25, 1999 04:48:58 am" To: Mathijs Brands Date: Tue, 26 Oct 1999 00:55:03 -0400 (EDT) CC: Clayton Cottingham , "pgsql-sql@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL65 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > On Mon, Oct 25, 1999 at 01:22:06AM +0000, Clayton Cottingham allegedly wrote: > > can anyone confirm this? > > > > create index idx on table using btree(column ); > > cluster idx on table; > > drop index idx; > > > > seems to drop all permissions and indexes > > on the table involved > > > > ive tested in 6.5 and 6.5.2 > > This is correct. I've had this problem myself. When you check the source, > there is a comment about this, but nothing useful. I myself would > consider this a bug too, but I'm not sure about the developers. > Man pages says: The table is actually copied to a temporary table in index order, then renamed back to the original name. For this reason, all grant permissions and other indexes are lost when clustering is performed. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026