Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvrV3-0002sR-Kv for pgsql-hackers@arkaria.postgresql.org; Fri, 22 May 2015 18:16:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvrV2-0005uv-Vj for pgsql-hackers@arkaria.postgresql.org; Fri, 22 May 2015 18:16:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvrV1-0005up-Qt for pgsql-hackers@postgresql.org; Fri, 22 May 2015 18:16:47 +0000 Received: from mail-qk0-f174.google.com ([209.85.220.174]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YvrUt-0004wq-Ln for pgsql-hackers@postgresql.org; Fri, 22 May 2015 18:16:47 +0000 Received: by qkdn188 with SMTP id n188so18220645qkd.2 for ; Fri, 22 May 2015 11:16:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yJQRabhzABZ2GqGmkMmOOFzP8OFdR/swol3X7FDGYVs=; b=KPr3O4nI4eC47QFppXYd/4nWxNZHuWoVDBISWroxuqZqsqgAoHzax8fRtMK7L8vf1L 21oyTybJE2k0wxoaFpFhdPMdYpanVUrq9ky0OU6z/wwpem5/duab/oqlspHPUauN/PLt //ygXtAshzy4pzNP0Xps3wNnoEFmuzyTrff7+p74I0oR6twySTZE2vYpmHRcUfMlzCAM i3vo4n7J2Fj65CqoiWVl6zq2WbdxtzOklzfe7h4kvqMsJTWaaT7CW+3swhvrgkTzNUId MP399cHIRqsqWeXaAidGfZn3V/qt+tXSto4jPXWzlliCRfWwSHUcCfX5fjiMQ6JJkpX1 IIpg== X-Gm-Message-State: ALoCoQkxLPX6kSLrJuUqsh3ruosAVuLhAAO2/heDTPiOqhfC/2xZWDZZXnZA2ujbEKQ0AvmaKOQPMmJ+Dpfdmce5OE9Lnka9HUgePQFJnDfs3rSoEk79GT4YKn4Mby6MRpWbRFfYqWiJhjFYMVjpNAHsSLDKrBgSqxucB96koHHuEltwWBTvknsVHDgftfRS7+rJO2tc03G5RjATGTr0AGlMfUg8pOvlDg== X-Received: by 10.55.54.6 with SMTP id d6mr20100280qka.77.1432318597091; Fri, 22 May 2015 11:16:37 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([181.43.9.19]) by mx.google.com with ESMTPSA id f4sm1776506qhe.9.2015.05.22.11.16.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 May 2015 11:16:36 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 4AA09492; Fri, 22 May 2015 15:08:07 -0300 (CLT) Date: Fri, 22 May 2015 15:08:07 -0300 From: Alvaro Herrera To: Stephen Frost Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Row-Level Security Policies (RLS) Message-ID: <20150522180807.GB5885@postgresql.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost wrote: > Row-Level Security Policies (RLS) What do we need RowSecurityPolicy->policy_id for? It seems to me that it is only used to determine whether the policy is the "default deny" one, so that it can later be removed if a hook adds a different one. This seems contrived as well as under-documented. Why isn't a boolean flag sufficient? (Not an actual review of this patch. I was merely skimming the code.) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers