Re: "PANIC: could not open critical system index 2662" - twice

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: "PANIC: could not open critical system index 2662" - twice
Дата
в 19:47:48
Msg-id
20230508194748.6ydbfiozcfsynaq6@awork3.anarazel.de
Ответ на
Список
Дерево обсуждения
"PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Laurenz Albe <laurenz.albe@cybertec.at>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Laurenz Albe <laurenz.albe@cybertec.at>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Laurenz Albe <laurenz.albe@cybertec.at>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Alban Hertroys <haramrae@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Laurenz Albe <laurenz.albe@cybertec.at>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: "PANIC: could not open critical system index 2662" - twice Tom Lane <tgl@sss.pgh.pa.us>
Re: "PANIC: could not open critical system index 2662" - twice Tom Lane <tgl@sss.pgh.pa.us>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Andres Freund <andres@anarazel.de>
Re: "PANIC: could not open critical system index 2662" - twice Kirk Wolak <wolakk@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Kirk Wolak <wolakk@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Kirk Wolak <wolakk@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Re: "PANIC: could not open critical system index 2662" - twice Evgeny Morozov <postgresql3@realityexists.net>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Re: "PANIC: could not open critical system index 2662" - twice Dilip Kumar <dilipbalaut@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Re: "PANIC: could not open critical system index 2662" - twice Tom Lane <tgl@sss.pgh.pa.us>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Re: "PANIC: could not open critical system index 2662" - twice Dilip Kumar <dilipbalaut@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Jeffrey Walton <noloader@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Thomas Munro <thomas.munro@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Ron <ronljohnsonjr@gmail.com>
Re: "PANIC: could not open critical system index 2662" - twice Thorsten Glaser <tg@evolvis.org>
Re: "PANIC: could not open critical system index 2662" - twice "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: "PANIC: could not open critical system index 2662" - twice Michael Paquier <michael@paquier.xyz>
Hi,

On 2023-05-07 16:10:28 +0000, Evgeny Morozov wrote:
> Yes, kind of. We have a test suite that creates one test DB and runs a
> bunch of tests on it. Two of these tests, however, create another DB
> each (also by cloning the same template DB) in order to test copying
> data between DBs. It's only these "extra" DBs that were corrupted, at
> least on this occasion.

Did you have any occasions where CREATE or DROP DATABASE was interrupted?
Either due the connection being terminated or a crash?

As described in
https://postgr.es/m/20230314174521.74jl6ffqsee5mtug%40awork3.anarazel.de
we don't handle that correctly for DROP DATABASE.

I think that might actually fit the symptoms - the DropDatabaseBuffers() will
throw away the dirty buffer contents from the WAL strategy CREATE DATABASE,
but if you then get cancelled ata point before all the files are removed, the
on-disk fails with all-zeroes would remain.

Greetings,

Andres Freund


В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: Laurenz Albe
Дата:
FAQ