| От | Tom Lane |
|---|---|
| Тема | Re: extensible enum types |
| Дата | |
| Msg-id | 29292.1277330935@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: extensible enum types (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: extensible enum types
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> Well, we don't need the enum value to map into the entire oid range.
> Can't we just add one to the top-most value and see if there is a
> conflict?
If you don't use the OID counter to generate the new value, you're going
to have problems with race conditions. There's also that small chance
that there is no free value before 2^32.
The bottom line here is not wanting a feature that "usually" works but
fails once in awhile on the basis of conditions the user can't control.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера