X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7DB74D1B89E for ; Sun, 17 Aug 2003 23:54:15 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 46722-10 for ; Sun, 17 Aug 2003 20:54:07 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 84D62D1B539 for ; Sun, 17 Aug 2003 20:54:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7HNs25H014229; Sun, 17 Aug 2003 19:54:02 -0400 (EDT) To: "Gaetano Mendola" Cc: pgsql-admin@postgresql.org Subject: Re: REINDEX or DROP and CREATE ? In-reply-to: <02f101c3650f$926ede00$10d4a8c0@mm.eutelsat.org> References: <02f101c3650f$926ede00$10d4a8c0@mm.eutelsat.org> Comments: In-reply-to "Gaetano Mendola" message dated "Mon, 18 Aug 2003 00:33:24 +0200" Date: Sun, 17 Aug 2003 19:54:02 -0400 Message-ID: <14228.1061164442@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/194 X-Sequence-Number: 9915 "Gaetano Mendola" writes: > what the difference ( apart a windows without index ) between > REINDEX a TABLE > or DROP each index and CREATE it again? Not much. > I'm worried about the type of locks involved. I'm pretty sure either course will take an exclusive lock on the table. regards, tom lane