Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EE6C3632CD5 for ; Sun, 15 Aug 2010 18:42:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78909-04 for ; Sun, 15 Aug 2010 21:42:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CE302632C63 for ; Sun, 15 Aug 2010 18:42:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o7FLghP4005948; Sun, 15 Aug 2010 17:42:43 -0400 (EDT) To: Greg Stark cc: Heikki Linnakangas , pgsql-hackers@postgresql.org Subject: Re: DropRelFileNodeBuffers API change (was Re: [BUGS] BUG #5599: Vacuum fails due to index corruption issues) In-reply-to: References: <201008042147.o74LlCge057659@wwwmaster.postgresql.org> <1280978913-sup-5475@alvh.no-ip.org> <8B7319E089E48047A0B688CE9CF54FD855C3C916@USRES8MAIL.asg.com> <1880.1281020817@sss.pgh.pa.us> <3092.1281898690@sss.pgh.pa.us> <4C6852A2.70503@enterprisedb.com> Comments: In-reply-to Greg Stark message dated "Sun, 15 Aug 2010 22:17:54 +0100" Date: Sun, 15 Aug 2010 17:42:43 -0400 Message-ID: <5947.1281908563@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/1045 X-Sequence-Number: 167848 Greg Stark writes: > On Sun, Aug 15, 2010 at 9:48 PM, Heikki Linnakangas > wrote: >> On 15/08/10 21:58, Tom Lane wrote: >>> Does anyone have an opinion whether it's likely that any third-party >>> code is calling DropRelFileNodeBuffers directly? >> >> I doubt it. External modules shouldn't be modifying relations at such a low >> level. > Really? What about an index access method? An index AM might have a reason to call smgrtruncate, but I can't see an argument why it should need to call DropRelFileNodeBuffers directly. The built-in AMs certainly never did. regards, tom lane