| От | Maurice Gittens |
|---|---|
| Тема | newoid in invapi.c |
| Дата | |
| Msg-id | 001c01bd4914$dbc77f20$fcf3b2c2@caleb..gits.nl обсуждение |
| Ответы |
Re: [HACKERS] newoid in invapi.c
|
| Список | pgsql-hackers |
Hi,
In the file large_object/inv_api.c there is a statement in the function
inv_create
which goes:
file_oid=newoid() + 1;
later on a heap_create_with_catalog call is performed to create a heap
for the large object called xinv<file_oid>.
According to code (and the comments in the code) the assumption is that the
oid
of the heap_relation will be equal to the value of the variable file_oid.
This of course will only be the case if nobody else called newoid()
before the heap relation is created.
This might lead the large object implementation to confuse
large object relations with other relations.
According to me this is a bug. I'm I right?
Thanks,
Maurice
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера