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 1sbN54-00G7xL-Gp for pgsql-general@arkaria.postgresql.org; Tue, 06 Aug 2024 16:30: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 1sbN52-001NR1-V7 for pgsql-general@arkaria.postgresql.org; Tue, 06 Aug 2024 16:30:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbN52-001NQY-K3 for pgsql-general@lists.postgresql.org; Tue, 06 Aug 2024 16:30:36 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbN4z-003PB0-Ug for pgsql-general@lists.postgresql.org; Tue, 06 Aug 2024 16:30:35 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52efef496ccso10491e87.1 for ; Tue, 06 Aug 2024 09:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722961832; x=1723566632; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x8iXwNW53M1zsb7l7ZuqQZHOUkjR2kSUREXbFwglYzM=; b=VHA0MRf8YTHEsNEPBCd7wYYB6zLiOb/83Y4JA2m+EB2zF1UsF8/1R8pLrBbh6G20Xk QD7xnkk3nF7R5VEb/fYD4WvspT3CU1C8+YjLOfheYffCifep6lci6t8HmL2jDNA8uRvB CdJ88mwZMbznQ72C5jiHQynQ2SSRQt4msi9JwWeSl5ZHHoect4TdoFTfUgEc5IkxB+R8 TcR768JpbuBJU0p6YtyOc9/auFfC0f4MyZEEiaUPQP8NcgU04ny/5hXsGh0bXN7N+5+I 4HAGyQhmluoCBVQ9Usfm4y1qA76CWV6braNdGhLUQ+0K4EmLhPniZAhZg6xWvDmTp9G4 KXDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722961832; x=1723566632; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x8iXwNW53M1zsb7l7ZuqQZHOUkjR2kSUREXbFwglYzM=; b=weSB5ApAKGwfaQ2tfz9UriHtE7EqwdQ+HGT4Gz+3ln7KmaCuG/GgqNJr+MxbjCbU/L etHwxst9FHN1TqpmqdiS7UjQUDKWEbIqh+KLn2KjzyyItAQBD7RKW9v+uFHYyrn4iQ/A kT2KvLc1YeTgfXasLsXvt6Z2x91akuGsg70ug76jzf/prTM9YrWj0xWxwfPmo2FN8LnP uFFFwGc0VJEqF4khaLaj/21yP1x7poGWlmjRGz5xvsacBVkncXmozQWnbskzzSAwfmdA K87hQWeygkEmQommdbHdyPo/NpVP9ERpHkIIuSsU6Wilpw4oSgEXZkpD7Vg9D45TjESV WQkQ== X-Gm-Message-State: AOJu0Yzwm+z7C6j5mWeeNdYPX/DjOF7FhtV8tse9hArKmzBhWNUyXMUQ apiZ0CK+ZG4IuEg5yQ3MSbxhnU5zUnbVzWPhBPZQ6oNs6JZEzhkNLFxeCHdp03pZtIoyIiD82mn vzSj9HKJu8ou+UKozirtjPQ1aunU= X-Google-Smtp-Source: AGHT+IER+YGxrXYGCfEZxrgq1oMx923a88pV7sqNZoYkQvN1j/Zsex3zZGoEkKXqbN/34gcmXDjhjCi3fvlTe502FVI= X-Received: by 2002:a05:6512:4002:b0:52c:dc06:d4ad with SMTP id 2adb3069b0e04-530bb2a22afmr5159682e87.6.1722961831875; Tue, 06 Aug 2024 09:30:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Tue, 6 Aug 2024 12:29:55 -0400 Message-ID: Subject: Re: data checksums To: bruno vieira da silva Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f35d09061f064f91" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f35d09061f064f91 Content-Type: text/plain; charset="UTF-8" The penalty is not "considerable", but it is not completely trivial either. But it's more on the trivial side. Part of the problem is that it is hard to measure, as it is very workload dependent. As to why it is not the default, Postgres is very careful and conservative by default, and not everybody was convinced that enabling checksums is worth the tradeoff, especially (IIRC) with the lack of real-world examples of people discovering issues thanks to these checksums. So yes, please enable and share with us if the checksums catch anything. I think the argument is worth re-opening again, because (as far as I know), all of the companies providing Postgres support, whether completely cloud-managed, setting up a complex HA cluster, or just providing tuning advice, have enabled checksums by default for many, many years. So a big +1 from me to finally making it the default. It's a de-facto default anyway at this point. Cheers, Greg --000000000000f35d09061f064f91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The penalty is not "considerable", but it is not= completely trivial either. But it's more on the trivial side. Part of = the problem is that it is hard to measure, as it is very workload dependent= . As to why it is not the default, Postgres is very careful and conservativ= e by default, and not everybody was convinced that enabling checksums is wo= rth the tradeoff, especially (IIRC) with the lack of real-world examples of= people discovering issues thanks to these checksums. So yes, please enable= and share with us if the checksums catch anything.

I th= ink the argument is worth re-opening again, because (as far as I know), all= of the companies providing Postgres support, whether completely cloud-mana= ged, setting up a complex HA cluster, or just providing tuning advice, have= enabled checksums by default for many, many years. So a big=C2=A0+1 from m= e to finally making it the default. It's a de-facto default anyway at t= his point.

Cheers,
Greg

--000000000000f35d09061f064f91--