[EMAIL PROTECTED] (Robert E. Bruccoleri) writes:
> While creating an index, the backend crashes. The stack dump taken
> from the core image is

>    6 ExceptionalCondition(conditionName = 0x10058598 = 
>"!(RelationNameCache->hctl->nkeys == 10)", exceptionP = 0x10065670, detail = (nil), 
>fileName = 0x100585c0 = "relcache.c", lineNumber = 1440) 
>["/pg/postgresql-6.5.3/src/backend/utils/error/assert.c":72, 0x5ba034]

Yes.  The Assert() in RelationCacheInvalidate is just plain wrong: there
are only nine nailed-in relcache entries, not ten.  (Perhaps there were
ten when it was written; can't say.)  If you are running with Asserts
enabled and hit an SI reset event, kaboom :-(.  This would've been
noticed and fixed long ago, I'm sure, if SI resets weren't such a rare
event.  I suppose not many regular users compile Asserts anyway.

That Assert is gone entirely in current sources.

                        regards, tom lane

Reply via email to