pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Evgeny Morozov <postgresql3@realityexists.net>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: PostgreSQL General <pgsql-general@postgresql.org>
Cc: Peter J. Holzer <hjp-pgsql@hjp.at>
Subject: Re: "PANIC: could not open critical system index 2662" - twice
Date: Wed, 12 Apr 2023 09:35:56 +0900
Message-ID: <ZDX87IYoz0GU9CKy@paquier.xyz> (raw)
In-Reply-To: <010201877134be1c-fb837249-04a1-4cb0-a13f-c542425b50a0-000000@eu-west-1.amazonses.com>
References: <01020187577238cf-da8c0f4a-3ab9-445a-8c74-31ef51439f30-000000@eu-west-1.amazonses.com>
	<4f4ab16320d7b3a4e9950eaabde752dce204dc77.camel@cybertec.at>
	<010201877134be1c-fb837249-04a1-4cb0-a13f-c542425b50a0-000000@eu-west-1.amazonses.com>

On Tue, Apr 11, 2023 at 04:44:54PM +0000, Evgeny Morozov wrote:
> We have data_checksums=on. (It must be on by default, since I cannot
> find that in our config files anywhere.)

initdb does not enable checksums by default, requiring a
-k/--data-checksums, so likely this addition comes from from your
environment.

> However, the docs say "Only
> data pages are protected by checksums; internal data structures and
> temporary files are not.", so I guess pg_class_oid_index might be an
> "internal data structure"?

pg_class_oid_index is a btree index that relies on 8k on-disk pages
(default size), so it is subject to the same rules as normal relations
regarding checksums for the pages flushed to disk, even if it is on a
catalog.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (65+ messages)  latest in thread

Message-ID: <ZDX87IYoz0GU9CKy@paquier.xyz>
Permalink:  ../ZDX87IYoz0GU9CKy@paquier.xyz/
Also on:    postgresql.org/message-id/ZDX87IYoz0GU9CKy@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, postgresql3@realityexists.net, laurenz.albe@cybertec.at, hjp-pgsql@hjp.at
  Subject: Re: "PANIC: could not open critical system index 2662" - twice
  In-Reply-To: <ZDX87IYoz0GU9CKy@paquier.xyz>
  References: <01020187577238cf-da8c0f4a-3ab9-445a-8c74-31ef51439f30-000000@eu-west-1.amazonses.com> <4f4ab16320d7b3a4e9950eaabde752dce204dc77.camel@cybertec.at> <010201877134be1c-fb837249-04a1-4cb0-a13f-c542425b50a0-000000@eu-west-1.amazonses.com> <ZDX87IYoz0GU9CKy@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox