Re: Insert statement deletes older table records

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Rabi Jay <rabijay1(at)yahoo(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Insert statement deletes older table records
Date: 2011-05-31 09:05:24
Message-ID: BANLkTi=Uza9Jp_fCDGurTJWXhy4VrJ_=kQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, May 30, 2011 at 1:07 AM, Rabi Jay <rabijay1(at)yahoo(dot)com> wrote:

> When I execute an insert statement, older table records are deleted even
> though my insert statement works. It always keeps the maximum number of
> records in the table to 4200 records. So If I added 3 more records, it
> deletes the first three records in the table even though it adds the 3 new
> records.
>
> Based on my research it appears postgreql has no limit to number of records
> in a table - what should I do to avoid this behavior.

If this is a real report, please come back with further details of the
actions you are performing, version numbers and related details. If
what you say is correct then this is a data loss bug and this project
takes such things very seriously.

Having said that, this is the second time in last few months that some
"hearsay" has emerged relating to there being a limit on the number of
rows in a PostgreSQL database. So I'm a little skeptical as to this as
a credible bug report.

PostgreSQL has never had a bug filed of this nature. The described
behaviour would certainly have been picked up in testing or production
usage if it was a bug, especially since tables with 1 billion+ rows in
are fairly common.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2011-05-31 13:33:34 pgpool versus sequences (was Re: [ADMIN] 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?)
Previous Message Tomasz Chmielewski 2011-05-31 08:26:58 Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?