pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Multivariate MCV stats can leak data to unprivileged users
Date: Sat, 18 May 2019 11:13:08 -0400
Message-ID: <21269.1558192388@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEZATCV5fo2E6K5EVN2uytGjMvhTKTizP_rOW67nPqNK8jHAAg@mail.gmail.com>
References: <CAEZATCUhT9rt7Ui=Vdx4N==VV5XOK5dsXfnGgVOz_JhAicB=ZA@mail.gmail.com>
	<20190513223605.lwj65akict3tpetv@development>
	<CAEZATCWFCN2yBpqpw4kw6xhwdPNz8DERPOWNHHQ_qHV4=tbJ8A@mail.gmail.com>
	<20190517202938.lkx6q2u6woiptrsa@alap3.anarazel.de>
	<CAEZATCX9yU2eKL7-dCWTv1pMMi1hb+PsZyM6gjBxupDnMuEzRw@mail.gmail.com>
	<CAEZATCV5fo2E6K5EVN2uytGjMvhTKTizP_rOW67nPqNK8jHAAg@mail.gmail.com>

Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> On the other hand, pg_dump relies on pg_statistic_ext to work out
> which extended statistics objects to dump. If we were to change that
> to use pg_stats_ext, then a user dumping a table with RLS using the
> --enable-row-security flag wouldn't get any extended statistics
> objects, which would be a somewhat surprising result.

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.  I'd have expected that
keeping those in separate catalogs would be the thing to do, though
perhaps it's too late for that.

			regards, tom lane





view thread (34+ messages)  latest in thread

Message-ID: <21269.1558192388@sss.pgh.pa.us>
Permalink:  ../21269.1558192388@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21269.1558192388@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dean.a.rasheed@gmail.com, andres@anarazel.de, tomas.vondra@2ndquadrant.com
  Subject: Re: Multivariate MCV stats can leak data to unprivileged users
  In-Reply-To: <21269.1558192388@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox