Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiILr-0004mH-VI for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jul 2018 11:53:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiILq-0008CI-3n for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jul 2018 11:53:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiILp-0008CB-Sv for pgsql-hackers@lists.postgresql.org; Wed, 25 Jul 2018 11:53:05 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fiILm-0000vG-Pf for pgsql-hackers@postgresql.org; Wed, 25 Jul 2018 11:53:05 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 172D641329; Wed, 25 Jul 2018 13:53:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id TCJHbmvpnh-S; Wed, 25 Jul 2018 13:53:00 +0200 (CEST) From: Antonin Houska To: Toshi Harada cc: pgsql-hackers@postgresql.org Subject: Re: "WIP: Data at rest encryption" patch and, 2 phase commit. In-reply-to: <201807230637.w6N6bDnQ028675@ccmail04.silk.ntt-tx.co.jp> References: <1248.1530086523@localhost> <201807230637.w6N6bDnQ028675@ccmail04.silk.ntt-tx.co.jp> Comments: In-reply-to Toshi Harada message dated "Mon, 23 Jul 2018 15:36:40 +0900." MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Jul 2018 13:54:22 +0200 Message-ID: <11824.1532519662@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Toshi Harada wrote: > Hi. >=20 > I applied the patch "WIP: Data at rest encryption" to PostgreSQL 11 - bet= a 2 and I'm working on it. >=20 > When this patch is applied, the following problem occurs. >=20 > * An error occurs when CHECKPOINT is executed during two-phase commit. > * After an error occurs, if you stop PostgreSQL, it will never start agai= n. >=20 > (1) First, execute PREPARE TRANSACTION. >=20 > postgres=3D# BEGIN; > BEGIN > postgres=3D# PREPARE TRANSACTION 'foo'; > PREPARE TRANSACTION > postgres=3D# >=20 > (2) Execute the CHECKPOINT command from another terminal. > CHEKPOINT command fails. >=20 > postgres=3D# CHECKPOINT; > ERROR: checkpoint request failed > HINT: Consult recent messages in the server log for details. > postgres=3D# The patch version I posted in https://www.postgresql.org/message-id/11678.1532519255%40localhost fixes an issue (unitialized pointer) that caused failure here, but it was SEGFAULT rather than ERROR. And the scope of the bug was broader than just CHECKPOINT. Can you please test it again with the new version of the patch? Anyway, thanks for your reports! --=20 Antonin Houska Cybertec Sch=C3=B6nig & Sch=C3=B6nig GmbH Gr=C3=B6hrm=C3=BChlgasse 26, A-2700 Wiener Neustadt Web: https://www.cybertec-postgresql.com