Re: The unused_oids script should have a reminder to use the 8000-8999 OID range

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: The unused_oids script should have a reminder to use the 8000-8999 OID range
Date: 2019-08-01 20:57:36
Message-ID: CAOBaU_YMqHOdpc-g3pTrc2pq_ayQgq9VBmFj3grRysCMQhXNEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 1, 2019 at 10:37 PM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
>
> I pushed a commit that required a new pg_proc entry today. Had I not
> been involved with the work that became commit a6417078, I would
> definitely not have used an OID from the range reserved for devel
> system catalogs (8000 - 8999). As I understand it, this is now
> standard practice.
>
> Perhaps unsurprisingly, other committers didn't get the memo, and
> haven't been using the special reserved range since its introduction
> in March. I think that this could be avoided by simply making
> unused_oids print a reminder about the new practice.

Huge +1. Last time I had to pick a new oid it took me ages to find
the correct range for that. The script could even suggest a random
free oid in the range, for extra laziness as you also suggested in the
almost exact same mail at
CAH2-WzmCzNMebiN4-8p=ON92m0Rz0ybxNEKrO_2J+9DqWfWP=A(at)mail(dot)gmail(dot)com :)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2019-08-01 21:04:22 Re: Tid scan improvements
Previous Message Andres Freund 2019-08-01 20:51:59 Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?