Re: postgres database crashed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgres database crashed
Дата
Msg-id 16673.1161092804@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: postgres database crashed  (Markus Schaber <schabi@logix-tt.com>)
Список pgsql-hackers
Markus Schaber <schabi@logix-tt.com> writes:
> Ashish Goel wrote:
>> The code works well if we don't maintain the referrences but when we
>> include the referrences then the database crashes somewhere between
>> 2500-3000 transactions.
>>
>> So could this problem be due to the multiple referrences being made to
>> the same table ?

> I doubt so.
> Foreign key references are among the basics of SQL, they're pretty well
> tested.

I'm betting that this is a memory-clobber problem in that custom datatype.
The reason the symptoms come and go when varying unrelated stuff is that
it might be chancing to clobber momentarily-unused memory rather than
live data structures.  (In the above example, the queue of pending FK
trigger events is likely what got clobbered.)
        regards, tom lane


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

Предыдущее
От: "Marko Kreen"
Дата:
Сообщение: Re: Getting the type Oid in a CREATE TYPE output function
Следующее
От: HS
Дата:
Сообщение: hacking postgres hashjoin algorithm