Received: from umc.se (qmailr@bookie.umc.se [194.165.232.226]) by hub.org (8.9.3/8.9.3) with SMTP id EAA04231 for ; Fri, 11 Feb 2000 04:11:34 -0500 (EST) (envelope-from mattias@umc.se) Received: (qmail 13861 invoked from network); 11 Feb 2000 09:02:32 -0000 Received: from bookie.umc.se (HELO marge) (root@194.165.232.226) by bookie.umc.se with SMTP; 11 Feb 2000 09:02:32 -0000 To: pgsql-admin@postgreSQL.org Subject: CLUSTER and SERAIL type From: Mattias Norlander User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.1 (20 Minutes to Nikko) Date: 11 Feb 2000 10:02:52 +0100 Message-ID: <8666vw862r.fsf@umc.se> Lines: 48 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reading the documentation on CLUSTER I see that "all grant permissions and other indexes are lost when clustering is performed." What does this really mean? I understand that all indexes and permissions are gone, but are there other impacts as well? Seems so to me that this also affects columns of type SERIAL and columns that defaults to a nextval('sequence'): --- X --- [PostgreSQL 6.5.3 on i386-unknown-freebsd3.1, compiled by gcc 2.7.2.1] ... test=> create table foo (id serial,name text); NOTICE: CREATE TABLE will create implicit sequence 'foo_id_seq' for SERIAL column 'foo.id' NOTICE: CREATE TABLE/UNIQUE will create implicit index 'foo_id_key' for table 'foo' CREATE test=> insert into foo(name) values('blah'); INSERT 25021983 1 test=> insert into foo(name) values('bleh'); INSERT 25021984 1 test=> insert into foo(name) values('bloh'); INSERT 25021985 1 test=> cluster foo_id_key on foo; CLUSTER test=> insert into foo(name) values('bluh'); INSERT 25021999 1 test=> select * from foo; id|name --+---- 1|blah 2|bleh 3|bloh |bluh --- X --- Grateful for explanations [and|or] workarounds ! -- Mattias Norlander mattias@umc.se