Re: pg_stat_reset() weirdness

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_stat_reset() weirdness
Date: 2002-08-10 15:21:54
Message-ID: 23804.1028992914@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> I guess I should know better than to jump to a conclusion. But I *was*
> under the impression we were supposed to use the unused_oids script to
> get a unique oid for a new function.

Right, we do still insist that all hand-assigned OIDs be distinct, but
that is a matter of bookkeeping simplicity and possible debugging
advantage. The system should only care that the OIDs in any one catalog
are unique. (If it were to assume more, we'd have trouble after OID
wraparound, because we can't guarantee database-wide uniqueness then.
We *can* guarantee per-table uniqueness, by means of unique indexes
placed on OIDs --- you'll notice all the catalogs that use OIDs have
such indexes.)

> Actually, I don't see the regression failure here at all, now that I try
> the patch.

Hmm. Maybe Chris just needs a make clean/rebuild/etc?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-10 20:38:41 Re: apply patch for contrib/intarray (CVS)
Previous Message Joe Conway 2002-08-10 14:46:52 Re: pg_stat_reset() weirdness