Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cstd8-0007Yj-KN for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 16:05:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cstd7-0004Bv-71 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 16:05:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cstba-00015s-T9 for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 16:04:23 +0000 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cstbX-0002Mv-SV for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 16:04:21 +0000 Received: by mail-qt0-x229.google.com with SMTP id i34so68209650qtc.0 for ; Tue, 28 Mar 2017 09:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BSj7vv41fzHBXClPCEz0axVq0nNujLypn5tdVi64lZU=; b=kPB4cXhqPz75ruV6YMGQFwR7YGy6WSPImDj2s47IQAliqh5UPT0Ro0FsfFN+pzzD7i wgQj1/ur5oSdmoJPFB3tyUG0Ivhz6jpeJZCzAx/DkMrBq8IrTc/1uFdN7AvO8ncakB9l I9WTdLtS90MYvSfLcGLFW1E7NOXQWF8XIcICvJWHEYpwy3owMIgxKMkAQcBGZ8eS6Sns /aYAWsHUKD6f10ASH/nWQtlQs4e6lDzscsxWftdW+Zlsp33353YUx4MqrjdpzTOvxOiG wB1cJbGiQ/LhaLFZZK2E1MIAo+CvMGZsj9sMb9FQwdOSY8P2HpJopSGTRMssXZgIO6xh 9DXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BSj7vv41fzHBXClPCEz0axVq0nNujLypn5tdVi64lZU=; b=lxwUIqIL1vpf0SSfWuKlfCQBRs9JPlmYIwjkshU3GeG0uCP41uLAr9Q/zCl04S3KGf 2hzSYw0qDP4EgMUe6RUaK/lxGtoPMbHzB9s2NSe+Bi/Qsk+4T2B0cv8Kcv+SWF5RIUGg MGe/Gl9TMnat00K9GV9YruWQWQc17MwyapOR4zBix9kIti+HFTXBAL/6I+u5a5/W6qHm TfzKMFvIhdM2pqwkzQdgn3vylnqn6BtnKor6jKA14P7oEUaB2oClA0YbcjxkMhqsBnGp v4PxYck5xIF4AeYKubbUGkyxlP5aWc3mPE2H51W3CYsvwVE8XAJPvTdq8W9CUqW9CVwv ifRQ== X-Gm-Message-State: AFeK/H2HmH9iz6t7xJYnQgvma0tTRS+D3cOnU2diB2M7DfRdb/zyqmyi+bzmU2odsAe6sg== X-Received: by 10.200.58.167 with SMTP id x36mr29139400qte.217.1490717058893; Tue, 28 Mar 2017 09:04:18 -0700 (PDT) Received: from [192.168.2.121] (24-113-198-113.wavecable.com. [24.113.198.113]) by smtp.gmail.com with ESMTPSA id o91sm2894886qte.42.2017.03.28.09.04.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Mar 2017 09:04:18 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Monitoring roles patch From: Mark Dilger In-Reply-To: Date: Tue, 28 Mar 2017 09:04:15 -0700 Cc: Peter Eisentraut , Stephen Frost , Robert Haas , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170322131510.GC9812@tamriel.snowman.net> <20170323122335.GK9812@tamriel.snowman.net> To: Dave Page X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.0 (--) 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 > On Mar 28, 2017, at 8:34 AM, Dave Page wrote: >=20 > On Tue, Mar 28, 2017 at 11:31 AM, Peter Eisentraut > wrote: >> This patch touches the pg_buffercache and pg_freespacemap extensions, >> but there appear to be some files missing. >=20 > Are you looking at an old version? There was one where I forgot to add > some files, but that was fixed within an hour or so in a new version. >=20 > Right now I'm waiting for discussion to conclude before updating the > patch again. There does not seem to be a new patch since Robert made his "modest proposa= l", so I guess I just have to ask questions about how this would work. I don't see any precedent in the code for having a hardcoded role, other th= an superuser, and allowing privileges based on a hardcoded test for membership in that role. I'm struggling to think of all the security implications of = that. If I have even one table in my database which is security sensitive, such t= hat I cannot allow users to see the size of the table, nor whether the table has unvacuumed rows (owing to the fact that would give away that it has been changed since the last vacuum time), then I can't use pg_real_all_stats for anything, right? And I would need to exercise some due diligence to make certain it does not get granted to anybody? What happens if I execute: REVOKE ALL ON TABLE mysecuretable FROM pg_read_all_stats? Does it work? Does it silently fail? Does it raise an exception? Does pg_read_all_stats still have access to stats for mysecuretable? mark --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers