Re: [HACKERS] Re: Bug#43221: postgresql: When disk is full, insert corrupts indices

Started by Tom Laneover 26 years ago2 messages
#1Tom Lane
tgl@sss.pgh.pa.us

Vadim Mikheev <vadim@krs.ru> writes:

Whenever index insert fails (for _any_ reason) index may be

^^^^^^^^^^^^^^^^

corrupted. I hope to address this with WAL...

One certainly hopes that's not true in the case of "cannot insert
duplicate key into a unique index" failures !?

regards, tom lane

#2Vadim Mikheev
vadim@krs.ru
In reply to: Tom Lane (#1)
Re: [HACKERS] Re: Bug#43221: postgresql: When disk is full, insert corrupts indices

Tom Lane wrote:

Vadim Mikheev <vadim@krs.ru> writes:

Whenever index insert fails (for _any_ reason) index may be

^^^^^^^^^^^^^^^^

corrupted. I hope to address this with WAL...

One certainly hopes that's not true in the case of "cannot insert
duplicate key into a unique index" failures !?

Oh, I meant cases when child btree page is splitted but
parent page is not updated, sorry.

BTW, duplicate check is made _before_ insertion...

Vadim
P.S. I'm on vacation till Aug 30...