Re: BUG #1814: Cancelling a CLUSTER changes the OID counter

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ian Burrell" <ianburrell(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1814: Cancelling a CLUSTER changes the OID counter
Date: 2005-08-09 03:31:37
Message-ID: 11872.1123558297@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ian Burrell" <ianburrell(at)gmail(dot)com> writes:
> Cancelling a CLUSTER is causing the OID counter to jump forwards. In the
> test below, it goes from 108 million to 4286 million (close to 2^32).

> We recently wrapped the OID counter.

Uh, does the same thing happen if you *don't* cancel it?

It looks to me like this could possibly happen due to CheckMaxObjectId()
being applied to each OID found in the existing table.

CheckMaxObjectId was always a kluge, and I'm not sure that it still has
any redeeming social value at all. Can anyone think of a good reason
to keep it?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ian Burrell 2005-08-09 17:11:41 Re: BUG #1814: Cancelling a CLUSTER changes the OID counter
Previous Message Tom Lane 2005-08-09 03:10:43 Re: BUG #1814: Cancelling a CLUSTER changes the OID counter