Re: The unused_oids script should have a reminder to use the8000-8999 OID range - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: The unused_oids script should have a reminder to use the8000-8999 OID range
Date
Msg-id CAOBaU_YMqHOdpc-g3pTrc2pq_ayQgq9VBmFj3grRysCMQhXNEw@mail.gmail.com
Whole thread Raw
In response to The unused_oids script should have a reminder to use the 8000-8999OID range  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: The unused_oids script should have a reminder to use the8000-8999 OID range  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
On Thu, Aug 1, 2019 at 10:37 PM Peter Geoghegan <pg@bowt.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@mail.gmail.com :)



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Feature improvement: can we add queryId forpg_catalog.pg_stat_activity view?
Next
From: David Rowley
Date:
Subject: Re: Tid scan improvements