Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neCqy-0000Gy-Nt for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 09:30:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neCqx-0006SP-Eo for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 09:30:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neCqw-0006Rr-Tv for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 09:30:27 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1neCqt-0003FV-WC for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 09:30:25 +0000 Received: by mail-wm1-x333.google.com with SMTP id ay11-20020a05600c1e0b00b0038eb92fa965so1327084wmb.4 for ; Tue, 12 Apr 2022 02:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:comments:mime-version :content-id:content-transfer-encoding:date:message-id; bh=xaCAVS1LESYbhRaLjqYAoFP1y9YSVRVy9ELuEU6KFbI=; b=vWwg1CQnxjB0EyEYw9BV/vJxb8RQHGJBdxxQCUJ52J9VgbldmzIUVzMdgz30WRufGE jvjT3gz7lgWoicKoBg02/IDI/in/mEhy7CZzSntkQdg5quBpA5i4bFckEC0EBxl9gImU j3UaNSmyosjDT3Up8YNZYC5c2+t25SgkO8+U3S/PR6GozG1inWv3COrFBC2VBkwhWl3g GZ0DNNjparAD0/8vrZCJqbxxJ5AXKhtGUGUMA51ct9tTeqBjuV1RTirLyTzaaHNzWJl0 rFcJyEFmQV1RFTcUF0mpeIgz2e1dFPdkw1gbXSFyd93lol3zy1hVVGr0JY7jQ1JdWlfY j7aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :comments:mime-version:content-id:content-transfer-encoding:date :message-id; bh=xaCAVS1LESYbhRaLjqYAoFP1y9YSVRVy9ELuEU6KFbI=; b=ASjTlkk/W3kpOZrzFx/QNteO7sC92+z6AFm22P7aS9joHQYDhPsIEATAsgJyW5Nlwz K/63SiZvKN1p6sD0NHs3w2h385g0uMhQqKjwPEODj5A2v7mhs/NC4fAGAnBo+DtNl5dX Fhi45LRB5WCQyahrJ91Pg6lDs182MJK0w4YTNRhQvnFYnkauwKHdAnD2CY/Vbpg4rrXB nJ5EspQz/pdN99npnFXLbQaqpRZ4VaQLNh1ISrBCfCFURSCgA5mkZ5ErG7oyY3upljO+ MDgehTP4V/EDOI0qlBw9n3Bw9suywPFPSdxd/SAa52jRZbwW3RhhSakNaJBby9iS5BYg yAMg== X-Gm-Message-State: AOAM530krhV2W4mg5zLGfESsOqxBuH6jRtC4PnzaEfi8WcjUYbzwnR4E 7DZM4OKCs9EErUG0/kjz8wrjvw== X-Google-Smtp-Source: ABdhPJxq9UHx3BY/LuKt0jv4mFHkPGE3qI/rB+HB+0e7U5Pz7h0lLDHGoaa7QvQ9On/hFBV96sPNxw== X-Received: by 2002:a1c:46c5:0:b0:38e:6a96:1aa0 with SMTP id t188-20020a1c46c5000000b0038e6a961aa0mr3182832wma.186.1649755822145; Tue, 12 Apr 2022 02:30:22 -0700 (PDT) Received: from antos (85-207-121-76.static.bluetone.cz. [85.207.121.76]) by smtp.gmail.com with ESMTPSA id u12-20020a5d6dac000000b00204119d37d0sm28676332wrs.26.2022.04.12.02.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 02:30:21 -0700 (PDT) From: Antonin Houska To: Robert Haas cc: Stephen Frost , PostgreSQL Hackers Subject: Re: Temporary file access API In-reply-to: References: <4987.1644323098@antos> <20220301143431.GT10577@tamriel.snowman.net> <27013.1646738099@antos> <3146.1649408068@antos> <2132.1649664364@antos> Comments: In-reply-to Robert Haas message dated "Mon, 11 Apr 2022 16:34:18 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 27.2.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3689.1649755839.1@antos> Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Apr 2022 11:30:39 +0200 Message-ID: <3690.1649755839@antos> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas wrote: > On Mon, Apr 11, 2022 at 4:05 AM Antonin Houska wrote: > > There are't really that many kinds of files to encrypt: > > > > https://wiki.postgresql.org/wiki/Transparent_Data_Encryption#List_of_t= he_files_that_contain_user_data > > > > (And pg_stat/* files should be removed from the list.) > = > This kind of gets into some theoretical questions. Like, do we think > that it's an information leak if people can look at how many > transactions are committing and aborting in pg_xact_status? In theory > it could be, but I know it's been argued that that's too much of a > side channel. I'm not sure I believe that, but it's arguable. I was referring to the fact that the statistics are no longer stored in fi= les: https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3D5891c= 7a8ed8f2d3d577e7eea34dacff12d7b6bbd > Similarly, the argument that global/pg_internal.init doesn't contain > user data relies on the theory that the only table data that will make > its way into the file is for system catalogs. I guess that's not user > data *exactly* but ... are we sure that's how we want to roll here? Yes, this is worth attention. > I really don't know how you can argue that pg_dynshmem/mmap.NNNNNNN > doesn't contain user data - surely it can. Good point. Since postgres does not control writing into this file, it's a special case though. (Maybe TDE will have to reject to start if dynamic_shared_memory_type is set to mmap and the instance is encrypted.) Thanks. -- = Antonin Houska Web: https://www.cybertec-postgresql.com