X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E1C2252809 for ; Wed, 6 Jul 2005 13:23:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23310-06 for ; Wed, 6 Jul 2005 16:23:23 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 2E7665280D for ; Wed, 6 Jul 2005 13:23:22 -0300 (ADT) Received: from [192.168.1.105] (clbb-248.saw.net [64.146.135.248]) (authenticated bits=0) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j66GNGoQ022098; Wed, 6 Jul 2005 09:23:16 -0700 Message-ID: <42CC057A.9060105@commandprompt.com> Date: Wed, 06 Jul 2005 09:23:22 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Teodor Sigaev Cc: Pgsql Hackers , Bruce Momjian , Tom Lane Subject: Re: GiST notice References: <42CBFE69.9070408@sigaev.ru> In-Reply-To: <42CBFE69.9070408@sigaev.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.34 tagged_above=0 required=5 tests=AWL, URIBL_SBL X-Spam-Level: X-Archive-Number: 200507/209 X-Sequence-Number: 70261 Teodor Sigaev wrote: > It should be mentioned in documentation that after pgsql's crash GiST > indexes may restore some "incorrect way": with invalid tuples. Of > course, not every time. Index will work absolutly correct but possibly > with some performance degradation (not big). 'Vacuum full' resolves this > problem and repairs invalid tuples. Can you also use reindex? Sincerely, Joshua D. Drake > If that problem is detected during recovery, postgres says to log : > LOG: Detected incomplete insert into GiST index 1663/16385/16458; It's > desirable to vacuum or reindex index > More, if usial vacuum will say on such index: > NOTICE: It's desirable to vacuum full or reindex GiST index 'idx' due > to crash recovery > Sorry, but my English doesn't make it possible to write correct phrase > to documentation. May be thats phrases too... > > > Just for reminder, I found strange trap on vacuum running concurrently > with a lot of other queries: > http://www.pgsql.ru/db/mw/msg.html?mid=2077426 > http://www.pgsql.ru/db/mw/msg.html?mid=2078029 > In short: > it caused approximatly one time per 2-4 million statements (with my > scripts at http://www.sigaev.ru/gist/, PIII/1133 MHz and Quad > Xeon/500MHz), I got traps: > TRAP: FailedAssertion("!((*curpage)->offsets_used == num_tuples)", File: > "vacuum.c", Line: 2766) > LOG: server process (PID 15847) was terminated by signal 6 > It's definitly bug in a vaccum code, I got the same trap without any GiST > indexes (to reproduce, just comment out 'create index' command in my > script). > >