Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz5Aq-00016x-1a for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Jun 2014 14:24:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wz5Ap-0007ZU-G7 for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Jun 2014 14:24:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wz58Z-0007IH-MK for pgsql-bugs@postgresql.org; Mon, 23 Jun 2014 14:22:23 +0000 Received: from smtp-out1.gransy.com ([77.78.126.51]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz58V-00026b-7U for pgsql-bugs@postgresql.org; Mon, 23 Jun 2014 14:22:21 +0000 Received: from smtp-out.gransy.com (localhost [127.0.0.1]) by smtp-out1.gransy.com (Postfix) with ESMTP id 7A9C536005B for ; Mon, 23 Jun 2014 16:22:16 +0200 (CEST) Received: from smtp.gransy.com (smtp.simplia.cz [77.78.126.20]) by smtp-out1.gransy.com (Postfix) with ESMTP id 39733360040; Mon, 23 Jun 2014 16:22:16 +0200 (CEST) Received: from sq.gransy.com (elizabeth.gransy.com [89.187.132.199]) (Authenticated sender: tv@fuzzy.cz) by smtp.gransy.com (Postfix) with ESMTPA id 1ABE219A053D; Mon, 23 Jun 2014 16:22:12 +0200 (CEST) Received: from 212.47.19.46 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Mon, 23 Jun 2014 16:22:13 +0200 Message-ID: <7b40c4f7daefe800823d32e1651f16e8.squirrel@sq.gransy.com> In-Reply-To: <20140622123758.2634.78393@wrigleys.postgresql.org> References: <20140622123758.2634.78393@wrigleys.postgresql.org> Date: Mon, 23 Jun 2014 16:22:13 +0200 Subject: Re: BUG #10726: database gets to an older backup out of nowhere!!! From: "Tomas Vondra" To: wildfox81@hotmail.com Cc: pgsql-bugs@postgresql.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Pg-Spam-Score: 1.2 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 22 Červen 2014, 14:37, wildfox81@hotmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 10726 > Logged by: Walid > Email address: wildfox81@hotmail.com > PostgreSQL version: 9.1.12 > Operating system: Win 7 > Description: > > > Dear All, I have a PostgreSQL 9.1 server working with a java 6 application > on windows 7. Sometimes I found that the db travels in time and many > records > are missing. It's like the DB had been restored to an older backup. > Because > some of these fields are according to its cascading structure is > un-delete-able. Even the auto IDs goes back as if some one truncated the > table and restore just that amount of data. > > Even I turned off the auto vacuum, I do vacuum the db on regular bases. > The > problem used to appear more often when I used the auto vacuum. > Please also note that: > > - Once the data came back to the DB after around 20 hours, interesting, > ha! > - Once the PostgreSQL log recorded a restore commands outs of no where. I > saw in the log when the DB was dropped, recreated, then data started to be > imported. > > Any ideas, suggestions, similar accidents!!! There's no built-in job that does dropdb/createdb/restore, so this is quite certainly a pilot error. I.e. there's something wrong in your backup scripts or some other tool you use (so it's not a postgres bug and pgsql-bugs is not the right place to discuss that). regards Tomas -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs