race condition in pgplsql call handler?

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема race condition in pgplsql call handler?
Дата
Msg-id 464427E9.6030101@sun.com
обсуждение исходный текст
Ответы Re: race condition in pgplsql call handler?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I'm looking into PG/PLSql code and following code in 
plpgsql_call_handler looks strange:
        /* Find or compile the function */        func = plpgsql_compile(fcinfo, false);
        /* Mark the function as busy, so it can't be deleted from under 
us */        func->use_count++;


I don't have deep knowledge about this part of code. But what happen if 
in parallel execution "func" will be deleted between these two lines?

    Zdenek


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [pgsql-es-ayuda] Error SSL en Postgresql
Следующее
От: Zeugswetter Andreas ADI SD
Дата:
Сообщение: Re: Seq scans roadmap