Received: from localhost (pluto.hub.org [200.46.204.4]) by postgresql.org (Postfix) with ESMTP id 3D75C9FB260 for ; Fri, 3 Nov 2006 02:58:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.4]) (amavisd-new, port 10024) with ESMTP id 40447-02 for ; Fri, 3 Nov 2006 02:58:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 231989FA4AD for ; Fri, 3 Nov 2006 02:58:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kA36w8Ob027201; Fri, 3 Nov 2006 01:58:08 -0500 (EST) To: Jeff Frost cc: pgsql-sql@postgresql.org Subject: Re: delete and select with IN clause issues In-reply-to: References: <24512.1162525800@sss.pgh.pa.us> <26796.1162535008@sss.pgh.pa.us> Comments: In-reply-to Jeff Frost message dated "Thu, 02 Nov 2006 22:42:35 -0800" Date: Fri, 03 Nov 2006 01:58:08 -0500 Message-ID: <27200.1162537088@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/36 X-Sequence-Number: 26688 Jeff Frost writes: > BTW, just to make sure I get the right file to ship over if we have this > again, it would be: /var/lib/pgsql/data/base/9366228/16204210 yes? Not necessarily --- the filename is initially the same as the index OID, but it wouldn't be anymore after a REINDEX. Instead use what you get from select relfilenode from pg_class where relname = 'page_view_visit_idx'; and note you will need to recheck it after reindexing. Also, it's a good idea to do CHECKPOINT right before copying the physical file, to make sure you've got a consistent file image on-disk. If you want to be 100% certain, shut down the postmaster while copying, but unless the index file is pretty large I think that's not necessary. regards, tom lane