Re: BUG #5412: test case produced, possible race condition.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5412: test case produced, possible race condition.
Дата
Msg-id 24490.1271256576@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5412: test case produced, possible race condition.  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: BUG #5412: test case produced, possible race condition.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> According to the comments above RelationClearRelation(), if it's called
> with 'rebuild=true', the caller should hold a lock on the relation, i.e
> refcnt > 0. That's not the case in RelationFlushRelation() when it
> rebuilds a new relcache entry.

> Attached patch should fix that, by incrementing the reference count
> while the entry is rebuilt. It also adds an Assertion in
> RelationClearRelation() to check that the refcnt is indeed > 0.
> Comments?

Why would this patch fix anything?  It doesn't change the lock status.

            regards, tom lane

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

Предыдущее
От: Rusty Conover
Дата:
Сообщение: Re: BUG #5412: test case produced, possible race condition.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5412: test case produced, possible race condition.