Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hS5Gw-00029e-MJ for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 19:45:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hS5Gv-0005iu-64 for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 19:45:33 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hS5Gu-0005ig-T9 for pgsql-hackers@lists.postgresql.org; Sat, 18 May 2019 19:45:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hS5Gi-0001r6-FX for pgsql-hackers@postgresql.org; Sat, 18 May 2019 19:45:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4IJjBO4000569; Sat, 18 May 2019 15:45:11 -0400 From: Tom Lane To: Tomas Vondra cc: Andres Freund , Dean Rasheed , PostgreSQL Hackers Subject: Re: Multivariate MCV stats can leak data to unprivileged users In-reply-to: <20190518190042.2y33h4toxk4fxv5t@development> References: <20190513223605.lwj65akict3tpetv@development> <20190517202938.lkx6q2u6woiptrsa@alap3.anarazel.de> <21269.1558192388@sss.pgh.pa.us> <4E0E0C14-C476-446A-835F-CC3558709DA9@anarazel.de> <20190518190042.2y33h4toxk4fxv5t@development> Comments: In-reply-to Tomas Vondra message dated "Sat, 18 May 2019 21:00:42 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <567.1558208711.1@sss.pgh.pa.us> Date: Sat, 18 May 2019 15:45:11 -0400 Message-ID: <568.1558208711@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > On Sat, May 18, 2019 at 11:49:06AM -0700, Andres Freund wrote: >>> On Sat, 18 May 2019 at 16:13, Tom Lane wrote: >>>> It seems like what we need here is to have a separation between the >>>> *definition* of a stats object (which is what pg_dump needs access >>>> to) and the current actual *data* in it. >> Otoh, having a suboptimal catalog representation that we'll likely have >> to change in one of the next releases also isn't great. Seems likely >> that we'll need post beta1 catversion bumps anyway? > But that's not an issue intruduced by PG12, it works like that even for > the extended statistics introduced in PG10. Yeah, but no time like the present to fix it if it's wrong ... regards, tom lane