Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbyRL-0001sb-3b for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 19:29:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UbyRK-0008Av-GB for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 19:29:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbYrF-0004TB-S3 for pgsql-bugs@postgresql.org; Sun, 12 May 2013 16:10:45 +0000 Received: from static.200.155.11.72.datacenter1.com.br ([200.155.11.72] helo=atenas.planetsys.com.br) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbYr6-0003yN-2M for pgsql-bugs@postgresql.org; Sun, 12 May 2013 16:10:41 +0000 Received: from atenas.planetsys.com.br by atenas.planetsys.com.br (Mail_Server36) with ASMTP id XVW65616 for ; Sun, 12 May 2013 13:10:16 -0300 From: "Chaya Gilburt" To: Subject: Odd Behavior After Multiple Deletes Date: Sun, 12 May 2013 13:10:24 -0300 Message-ID: <000001ce4f2b$3823a050$a86ae0f0$@nybc.com.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CE4F12.12DB2340" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac5PJwd/a33ibo+nSIKhsjSfU5d3zw== Content-Language: en-us X-Pg-Spam-Score: 0.1 (/) 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 This is a multipart message in MIME format. ------=_NextPart_000_0001_01CE4F12.12DB2340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sirs, =20 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. =20 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. =20 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 =93bleed=94 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? =20 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, =93Get = your versions in sync right away!=94 It=B4s just that the duplication of data = occurs only in this one file where all the deletes are issued every night. =20 Sincerely, Chaya Gilburt ------=_NextPart_000_0001_01CE4F12.12DB2340 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Dear = Sirs,

 

We are observing an odd phenomena = with PostgresSQL, which is no doubt due to our using the database = improperly. =A0That 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.       = =A0First 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=B4s just that the duplication of data occurs only = in this one file where all the deletes are issued every = night.

 

Sincerely,

Chaya Gilburt

------=_NextPart_000_0001_01CE4F12.12DB2340--