Re: Assert failure when rechecking an exclusion constraint

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: Assert failure when rechecking an exclusion constraint
Дата
Msg-id 20110606002607.GA27138@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: Assert failure when rechecking an exclusion constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Assert failure when rechecking an exclusion constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jun 05, 2011 at 02:17:00PM -0400, Tom Lane wrote:
> I wrote:
> > Noah Misch <noah@leadboat.com> writes:
> >> Sounds reasonable.  Need to remove the index from pendingReindexedIndexes, not
> >> just call ResetReindexProcessing().
> 
> > [ looks again... ]  Uh, right.  I was thinking that the pending list was
> > just "pending" and not "in progress" indexes.  I wonder if we should
> > rejigger things so that that's actually true, ie, remove an index's OID
> > from the pending list when we mark it as the current one?
> 
> Attached are two versions of a patch to fix this.  The second one
> modifies the code that tracks what's "pending" as per the above thought.
> I'm not entirely sure which one I like better ... any comments?

+1 for the second approach.  It had bothered me that SetReindexProcessing() and
ResetReindexProcessing() manipulated one thing, but ReindexIsProcessingIndex()
checked something else besides.  (That's still technically true, but the overall
effect seems more natural.)

Thanks,
nm


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

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: Review: psql include file using relative path
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Auto adjust send buffer size to congention window