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

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: The unused_oids script should have a reminder to use the8000-8999 OID range
Дата
Msg-id CAH2-WzmS5bG36zSyXSAq+p8GUD4_BMT=iz4PuxogrdOh1j=Z5A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: The unused_oids script should have a reminder to use the 8000-8999 OID range  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: The unused_oids script should have a reminder to use the 8000-8999 OID range  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Aug 2, 2019 at 1:49 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Maybe s/make a/start with/ ?

> Also, once people start doing this, it'd be unfriendly to suggest
> 9099 if 9100 is already committed.  There should be some attention
> to *how many* consecutive free OIDs will be available if one starts
> at the suggestion.

How about this wording?:

Patches should use a more-or-less consecutive range of OIDs.
Best practice is to start with a random choice in the range 8000-9999.
Suggested random unused OID: 9591 (409 consecutive OID(s) available
starting here)

Attached is v3, which implements your suggestion, generating output
like the above. I haven't written a line of Perl in my life prior to
today, so basic code review would be helpful.

-- 
Peter Geoghegan

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: partition routing layering in nodeModifyTable.c
Следующее
От: Isaac Morland
Дата:
Сообщение: Re: The unused_oids script should have a reminder to use the8000-8999 OID range