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 1hS8kf-0002Dv-OB for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 23:28:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hS8kd-0001S3-6I for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 23:28:27 +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 1hS8kc-00016g-NQ for pgsql-hackers@lists.postgresql.org; Sat, 18 May 2019 23:28:26 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hS8kT-0007dH-Lq for pgsql-hackers@postgresql.org; Sat, 18 May 2019 23:28:24 +0000 Received: by mail-wm1-x343.google.com with SMTP id f204so9949501wme.0 for ; Sat, 18 May 2019 16:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zcSqtSWCrAH56asiPs3Cr4KR2IncQzNERliB/WITI0Q=; b=IT5/MkspWruO5v5Tc4YsYTB09oWmcmtvFcJiSyen/dC5eMG135m2vjboYrKGGuj+gz G0njCdmiLjkmVM/VuhT249WzjgIxYYptcsNMy3/c7eLcxv5ZQ8hW1xDFnMJHUAVQOm5A vRjX14VVzdAGSHkDT5EXLXDBmvJFoSbFiRPvJU5/IFshcayOG6g9z8lugcKPMZPH84Oh xuYrxAUpdXSL8HDcJU5Xo/f516S+Zl38H4+g2+HKVBAEDJExTpEfhKrBYE/H1n5Nlcy3 +iT2x3VP16bAOMR65D5jCprvNKsjyOaaG4aH1YSQY3K4omMJwNGTaUlRYWvbumk++9hz qsew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zcSqtSWCrAH56asiPs3Cr4KR2IncQzNERliB/WITI0Q=; b=q4HYjPDF4MQFs/aulbE/gwfVXKHFZdY+chOYrLNrnl2ckjK3S8uFYdQOWNGTSC05vK bLrS+55w507Wrd7PtIflxf+Ab0fESHat8cJCBVir9WpahgIQpvJiwuFz+VJnB2lgkHJy jhfZXCXkeL1p8nxSKuMmUzYLESET986S1Nvsu/ojXPuILaaOaveYeq9ib1Kh5W8UZiM4 zny8TFiayajhRi6n+1ix1LHacB/Z4luw7QtO9s8HK0j5GSOJ4aE+E6LapO4WZVF/5NtP 6ixq7u2cTUHfo5Dfw0kuearWKo3wYNzusZZlWb7Al/wl7jjVaPw7WvNsID2wR2iHz3Op AnjA== X-Gm-Message-State: APjAAAWvsLVCJ19z53JyOiDtpaOnLKQediZxd4BtpJVKhMyuOxaV0n2Z tbd2Uuyn6//8SfIba8lLsIXZtg== X-Google-Smtp-Source: APXvYqwDhHMsNeuD92Vdqmh37O+hdqFBW4MagiCBMssIdUry+LIyaXNjgjmfcXhX9gWzdgTMsjKIjg== X-Received: by 2002:a1c:20c9:: with SMTP id g192mr35675403wmg.76.1558222095442; Sat, 18 May 2019 16:28:15 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id x187sm14580466wmb.33.2019.05.18.16.28.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 18 May 2019 16:28:14 -0700 (PDT) Date: Sun, 19 May 2019 01:28:12 +0200 From: Tomas Vondra To: Tom Lane Cc: Andres Freund , Dean Rasheed , PostgreSQL Hackers Subject: Re: Multivariate MCV stats can leak data to unprivileged users Message-ID: <20190518232812.qpnjmydlx3uzzsj7@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> <568.1558208711@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <568.1558208711@sss.pgh.pa.us> User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, May 18, 2019 at 03:45:11PM -0400, Tom Lane wrote: >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 ... > Sorry, not sure I understand. Are you saying we should try to rework this before the beta1 release, or that we don't have time to do that? I think we have four options - rework it before beta1, rework it after beta1, rework it in PG13 and leave it as it is now. If the pg_dump thing si the only issue, maybe there's a simple solution that reworking all the catalogs. Not sure. Are there any other reasons why the current catalog representation would be suboptimal, or do we have some precedent of a catalog split this way? I can't think of any. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services