Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2403C1337BC4 for ; Fri, 6 May 2011 05:48:00 -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 43932-09 for ; Fri, 6 May 2011 08:47:53 +0000 (UTC) X-Greylist: delayed 00:05:28.880396 by SQLgrey-1.7.6 Received: from mail.virtall.com (mail.virtall.com [178.63.195.102]) by mail.postgresql.org (Postfix) with ESMTP id DE1A41337BB4 for ; Fri, 6 May 2011 05:47:51 -0300 (ADT) Received: from mail.virtall.com (localhost [127.0.0.1]) by mail.virtall.com (Postfix) with ESMTP id 8F64B36276E; Fri, 6 May 2011 10:42:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=wpkg.org; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=default; bh=SmNrTeXtB 9+F1es0Hhffw5mxPv0=; b=pRsrc4V73zYPcM32ubsWnL/dSko9cL+5Ty5hyOZFD 1QB2Z2pxWPwax5cNVSeiMjYMOSbchlNg4O6wYtXFXBWaNFv7niGo3xGnU4yO6vTE 4VeJqtZUQ65efWp+rWKGTgRLDeoKd4cyta3kkw6RX4euP54uDQvbb6AcPEsxgdFR SU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=wpkg.org; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=default; b=tUw baPHmooh/ETQ9h8xLNtwn+8FPiXn5qxYYj7wO2sTO8Vrv59nJfXjSBfuLt0+MSgm 9pTOTJChDxpYuhnHadk7e1v88mJ1gTwep55K8esFJlAshZhQjm4h/MDBViZ+Fdt+ Hm/pXbrChVv5941TN9vg34jTeKQpsMzpobtjwpKc= Received: from [10.111.0.6] (sc.virtall.com [178.63.195.125]) by mail.virtall.com (Postfix) with ESMTPSA id 1009736276C; Fri, 6 May 2011 10:42:20 +0200 (CEST) Message-ID: <4DC3B469.80004@wpkg.org> Date: Fri, 06 May 2011 10:42:17 +0200 From: Tomasz Chmielewski User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Scott Marlowe CC: Kevin Grittner , pgsql-admin@postgresql.org Subject: Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now? References: <4DC0F063.70306@wpkg.org> <4DC15137020000250003D295@gw.wicourts.gov> <4DC19CD1.7070600@wpkg.org> <4DC1B378.6050105@wpkg.org> <4DC1B6C0.2000507@wpkg.org> In-Reply-To: <4DC1B6C0.2000507@wpkg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/63 X-Sequence-Number: 37500 On 04.05.2011 22:27, Tomasz Chmielewski wrote: >>> Then another pg_clog file disappeared. > > OK, I have: > > bookstor=# SELECT * FROM core_wot_seq; > sequence_name | last_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called > ------------------+------------+--------------+---------------------+-----------+-------------+---------+-----------+----------- > core_wot_seq | 2593 | 1 | 9223372036854775807 | 1 | 1 | 8 | f | t > (1 row) > > bookstor=# SELECT 1 FROM core_wot_seq; > ?column? > ---------- > 1 > (1 row) > > bookstor=# SELECT 1 FROM core_wot_seq FOR UPDATE; > ERROR: could not access status of transaction 1573786613 > DETAIL: Could not open file "pg_clog/05DC": No such file or directory. > > How do I best recover from this? Stop postgres, create an empty, 256k pg_clog/05DC file, start postgres? > > Export table, drop table, import table? Anything else? Nobody has a clue? :| -- Tomasz Chmielewski http://wpkg.org