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 1hBDtm-00087n-OF for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 07:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBDtk-0005b7-Ca for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 07:31:56 +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 1hBDtk-0005Ty-2i for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 07:31:56 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBDtc-0006UE-Ge for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 07:31:55 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBDtZ-0006VI-Dp for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 07:31:45 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.89) (envelope-from ) id 1hBDtY-0003xN-BY for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 07:31:44 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@lists.postgresql.org From: Dean Rasheed Subject: pgsql: Perform RLS subquery checks as the right user when going via a v Message-Id: Date: Tue, 02 Apr 2019 07:31:44 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence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