Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CB7B363459E for ; Thu, 1 Oct 2009 00:11:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 48297-06 for ; Thu, 1 Oct 2009 03:11:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [202.32.8.206]) by mail.postgresql.org (Postfix) with ESMTP id 79A8C634EAE for ; Thu, 1 Oct 2009 00:11:32 -0300 (ADT) Received: from mailgate3.nec.co.jp ([10.7.69.161]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n913BSJS008625; Thu, 1 Oct 2009 12:11:28 +0900 (JST) Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id n913BSC05180; Thu, 1 Oct 2009 12:11:28 +0900 (JST) Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv4.nec.co.jp (8.13.8/8.13.4) with ESMTP id n913BS81019552; Thu, 1 Oct 2009 12:11:28 +0900 (JST) Received: from togyo.jp.nec.com ([10.26.220.4] [10.26.220.4]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-2275413; Thu, 1 Oct 2009 12:09:46 +0900 Received: from [10.19.71.82] ([10.19.71.82] [10.19.71.82]) by mail.jp.nec.com with ESMTP; Thu, 1 Oct 2009 12:09:46 +0900 Message-ID: <4AC41D79.5070700@ak.jp.nec.com> Date: Thu, 01 Oct 2009 12:09:45 +0900 From: KaiGai Kohei User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Stephen Frost CC: KaiGai Kohei , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: [PATCH] Reworks for Access Control facilities (r2311) References: <20090929105431.GO17756@tamriel.snowman.net> <4AC1EA9E.3080907@kaigai.gr.jp> <20090929173049.GP17756@tamriel.snowman.net> <4AC2BDD0.7050906@ak.jp.nec.com> <20090930105911.GS17756@tamriel.snowman.net> <4AC40133.4080509@ak.jp.nec.com> <20091001021701.GY17756@tamriel.snowman.net> In-Reply-To: <20091001021701.GY17756@tamriel.snowman.net> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.508 tagged_above=-10 required=5 tests=AWL=0.091, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/2 X-Sequence-Number: 146814 Stephen Frost wrote: >>> I know it doesn't hide existence of major database objects. Depending >>> on the situation, there might be other information that could be leaked. >>> I realize that's not the case here, but I still want to catch and >>> document any behavioral changes, even if it's clear they shouldn't be an >>> issue. >> I agree that it should be documented. >> Where should I document them on? I guess the purpose of the description >> is to inform these behavior changes for users, not only developers. >> The official documentation sgml? wiki.postgresql.org? or, source code >> comments are enough? > > What I would suggest is having a README or similar which accompanies the > patch. This could then be included by reference in the commit message, > or directly in the commit depending on what the committer prefers. Or, > it could just go into the mailing list and commitfest archives. The > point is to make sure the committer understands and isn't suprised when > reviewing the changes and comes across places where the code changes > result in a behaviour change. > > If the changes are significant enough (and I don't think they will be, > to be honest..), they should be included by the committer in the commit > message and then picked up by Bruce, et al, when the release notes are > developed. I don't believe it needs to be in the formal PG > documentation, unless there's something documented there today which is > changing (very unlikely..). It may be good idea to put src/backend/security/README. I'm not clear whether the commit message or release note is appropriate. (it is unnoticeable if commit message, it is too details for release note.) > No, no. What I was suggesting and what I think we already do in most > places (but not everywhere and it's not really a policy) is this: > > CreateXXXX() > { > namespaceId = LookupCreationNamespace(); > tablespaceId = get_tablespace_oid(); > ac_xxx_create(); > : > values[ ... ] = ObjectIdGetDatum(namespaceId); > values[ ... ] = ObjectIdGetDatum(tablespaceId); > simple_heap_insert(); > : > } > > Which I think is what you're doing with this, it just might be a change > from what was done before when there were multiple permission checks > done. Ahh, it was a communication bug. we talked same thing. Thanks, -- OSS Platform Development Division, NEC KaiGai Kohei