pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chaya Gilburt <chaya@nybc.com.br>
To: pgsql-bugs@postgresql.org
Subject: Odd Behavior After Multiple Deletes
Date: Sun, 12 May 2013 13:10:24 -0300
Message-ID: <000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Dear Sirs,

 

We are observing an odd phenomena with PostgresSQL, which is no doubt due to
our using the database improperly.  That database in question is PostgresSQL
Version 8.7.1 and runs on a machine installed with Server 2003. The DELETE
commands were being issued both from a Windows XP using PostgresSQL Version
9.1 and at times, from the server itself.

 

1.       We have a table that receives a load of data daily from an older
system. Every night, we delete some of the rows on the table using a DELETE
command from PgAdminIII, perform a VACUUM Full on that table, and then
reload the data using a batch file that contains a series of INSERTS. We run
the batch file from the command line prompt. The table seems fine
afterwards, and the data is correct. We then we turn off the system for the
night.

 

2.        First thing next morning, we look at the data and verify that it
is the same as it was the night before. Suddenly, as the day goes by, the
older, deleted data appears to “bleed” back into the table, creating
duplicate rows. Users are entering new data to that table during the day, as
well as looking at the data we loaded the night before, but none of the
duplicate rows are coming from user input, only the system itself. What are
we doing wrong?

 

We have not tried dropping the table and starting over, as that would entail
reloading much older data. I think that you will probably say, “Get your
versions in sync right away!” It´s just that the duplication of data occurs
only in this one file where all the deletes are issued every night.

 

Sincerely,

Chaya Gilburt

view thread (4+ messages)  latest in thread

Message-ID: <000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br>
Permalink:  ../000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br/
Also on:    postgresql.org/message-id/000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: chaya@nybc.com.br
  Subject: Re: Odd Behavior After Multiple Deletes
  In-Reply-To: <000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br>
  References: <000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox