Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 34781B8BE76 for ; Sun, 24 Jun 2012 04:16:04 -0300 (ADT) Received: from mail-pz0-f46.google.com ([209.85.210.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sih3A-00052Q-Rx for pgsql-admin@postgresql.org; Sun, 24 Jun 2012 07:16:03 +0000 Received: by dady13 with SMTP id y13so4024648dad.19 for ; Sun, 24 Jun 2012 00:15:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=hTIYgmNrCae7OIRPWQ9jGDhN/HKuO6oJu5KrrrEPp74=; b=JkCJ3+JL/pMiVEP8J/HdrmlqoIuLouPf9AncYXlSdlZ2EJye5DnJT+1Hr8w5iRnTlI 0tbDGk7zZb5/p65J+Ur84YJMqmMwHSjwZj2HnArRmISdbr/ux4tZPu+3Ld0JCv8m+2BN S1cH1qfBxgNkfzTp2eyhlQCZMCD8rIBFx7zZf+ZJh/JAFxtyXxb7ai7l6K5eMcAb1ybT LzkLItGgO5ZPed7u8DNlLIAvwiQPDHoqee3QLLuFcHnuLhBDZm78bMrSQePVkD+fsXwT ToYmnkM884wj0/Lznx402u+7M9O5vVI/8zQQ2bJNNcqer4frITbdAVobHEsMnDq36P9K Ji5g== Received: by 10.68.201.7 with SMTP id jw7mr27519160pbc.60.1340522146620; Sun, 24 Jun 2012 00:15:46 -0700 (PDT) Received: from ayaki.localdomain (124-169-169-118.dyn.iinet.net.au. [124.169.169.118]) by mx.google.com with ESMTPS id x1sm4582105pbp.50.2012.06.24.00.15.43 (version=SSLv3 cipher=OTHER); Sun, 24 Jun 2012 00:15:45 -0700 (PDT) Message-ID: <4FE6BE9C.7000303@ringerc.id.au> Date: Sun, 24 Jun 2012 15:15:40 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Kevin Grittner CC: mbroers@gmail.com, pgsql-admin@postgresql.org Subject: Re: starting postgres with an empty px_xlog folder References: <4FE5D68A0200002500048A32@gw.wicourts.gov> In-Reply-To: <4FE5D68A0200002500048A32@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQloZiKPbnMRHMh44AweivkdX8PlIlMUruurFGAT6K0Md35cA17PrroSEsE6OMaYDQ0valQI X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/109 X-Sequence-Number: 39700 On 06/24/2012 03:45 AM, Kevin Grittner wrote: > As previously stated, make sure you understand how this happened, so > you can make sure it doesn't happen again. The contents of the > pg_xlog directory are an integral part of your database cluster. People not backing up pg_xlog, deleting its contents, etc happens often enough that I wonder if it should have a prominent 00_README or 00_WARNING_DONT_DELETE file created by initdb - or simply be renamed to something scarier like "base_txrecords". The annoyance of a readme is that it'd need translation. People are used to logs being disposable. Anyone who's been responsible for a database should ideally know better than to assume that *transation* logs are disposable, but everyone has to learn sometime, and not everybody does so by reading TFM (unfortunately). -- Craig Ringer