Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwRfK-00Bil6-H4 for pgsql-general@arkaria.postgresql.org; Fri, 27 Oct 2023 18:34:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qwRfJ-000P4I-4W for pgsql-general@arkaria.postgresql.org; Fri, 27 Oct 2023 18:34:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwRfI-000P47-Pc for pgsql-general@lists.postgresql.org; Fri, 27 Oct 2023 18:34:36 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qwRfF-003CE4-F1 for pgsql-general@postgresql.org; Fri, 27 Oct 2023 18:34:35 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-53e08b60febso3672343a12.1 for ; Fri, 27 Oct 2023 11:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698431671; x=1699036471; darn=postgresql.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=G0FqCYHsCpBT6eQcqxrM0t8wJdol6TDdASUoj1tn5C0=; b=Nh1rpYZuOlDbiFno55giWJIE80J7BsvvkHc0pHRG+Cq0jwTMz3T6Azx57sR0t72YCm mhgxiGALFCzWqWKf+7vJlPpYxdduR4kXJypTXq5BlDUrDw1Uw2cxeZtBchcAfSWYh8HK kGvIb3C0viDKsPwns+ZmJXjUOP0qdFyfivfK6tES/kOh3JkNR4x93asx4zeb4iqXX5cX aJGzQIfXhQ20vRvQtSzM0pJFAEHaCjQbVEvKNvGRZd1vodwzfULT8TflXFBMrt2N0TbS sS65VX2oOx+Lq24i3Kk5JcmOQ8kbB28nq6jEhTX3SdYFelyRHYFDB857dgsFr3S8fobF wzTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698431671; x=1699036471; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G0FqCYHsCpBT6eQcqxrM0t8wJdol6TDdASUoj1tn5C0=; b=SQnkCUcROX4jOlRvYTKI5+fGkXKRsfZiUzVYK0tA0AfhfJ9eucjlj7TapvvFLAwtkQ Jds/LPVXAhTOAfDglCFYx7IHm2G2Q6OLFn6/ZrYZNtawPsySYg6r2slsdzqtTrrOuCGu LSOcSYnZ5v0Vb+vycLk7qTo9H5OGFcQ+6Wo5szBukOJDp/Z5JSMSytJVbb5oB9/vApaL LvJ6IN5ETBuGAgpnlHepqeWP8a8fNQ9oCetPJE422+wbhZrLpWtJUJRePvSzZ8R1So6g ICOlGHaQfBEW4s7RsbZPyuW66kjGB1DNsO7CNdjutHRVGbi/9ZXwHdTp6pdP0255rFk+ oxpw== X-Gm-Message-State: AOJu0YxoHzfSscizOvsMjaJ+IyP85v1sBznVQWAQePA1kXO0Ehk/ZiTx q5xaew1bS22EgRnSm0h4lFQT++vaercc3A== X-Google-Smtp-Source: AGHT+IEhVLwVNwpsqJS1DFN0tMV1EcI+yYR9+VKzzCpWKs1lh8xjPD13+e9+I48hNVfOf84WsLI28A== X-Received: by 2002:a05:6402:a43:b0:540:2ece:79 with SMTP id bt3-20020a0564020a4300b005402ece0079mr2936101edb.10.1698431671168; Fri, 27 Oct 2023 11:34:31 -0700 (PDT) Received: from smtpclient.apple (26-36-239-77.dyn.cable.fcom.ch. [77.239.36.26]) by smtp.gmail.com with ESMTPSA id d21-20020a50f695000000b0053def18ee8bsm1610876edn.20.2023.10.27.11.34.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Oct 2023 11:34:30 -0700 (PDT) From: =?utf-8?Q?Paul_F=C3=B6rster?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: pg_checksums? Message-Id: <22272207-E6E5-4DD5-9BD4-5F6B647E2C3B@gmail.com> Date: Fri, 27 Oct 2023 20:34:00 +0200 To: "pgsql-general@postgresql.org >> PG-General Mailing List" X-Mailer: Apple Mail (2.3774.200.91.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I have a few questions about pg_checksums. Long story short, checksums were disabled in our environment but are = getting enabled now (again!) because of block corruptions which = destroyed a few databases in a database cluster. And before you say = "told you so", the decision to disable checksums was not mine. Some = people just have to learn the hard way. Anyway, re-enabling data checksums creates a few questions: a) why isn't it possible to enable checksumming while a database cluster = is up? b) why isn't it possible to check whether checksums are enabled or not? c) in a Patroni cluster consisting of a primary and a sync standby, is = it safe to enable checksumming in the replica, then switch over and = enable it in the ex-primary, i.e. now new replica, without any penalty? = Or do I have to perform a reinit to really get them in sync again, = though paronictl happily reports them to be in sync? d) how long does it take to enable checksums in general? Minimizing = down-time is crucial. Does it depend on the database cluster size, or = the number of files it uses, or what can be taken as a criterion to = estimate then necessary down-time. Thanks in advance for your insights. Cheers Paul=