Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqfon-0007FO-Ix for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Mar 2017 12:56:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cqfom-0005BL-Mp for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Mar 2017 12:56:48 +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 1cqfnE-00009z-7I for pgsql-hackers@postgresql.org; Wed, 22 Mar 2017 12:55:12 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqfnB-0007wo-IU for pgsql-hackers@postgresql.org; Wed, 22 Mar 2017 12:55:10 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8153320BBF; Wed, 22 Mar 2017 08:55:08 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Wed, 22 Mar 2017 08:55:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=LElv7uNZuTZlb4+kTDk85QzE2Dk+Eph9UZGGRoY3H/0=; b=rVvPgVjC 2+1CSnhMR0QQSMbl2Nx9N65cec1PvWPESu1vbTWhx+RP48iuCk3WQLmqF3+g3vfZ boYP73g2O0D/Ek4J2Pow8Dk4NuKIWdf9ZZptuIItUGZrKlS7Q2OLSLY2zGXcE/5C r0AC4MikWH60vGSorDDswF0ZGM7dE6r1puyuMm4U9jxLfUYHhG/KHsuqD+aW4MVs SaiTHa6BfDcXEDXxxbF4Gy0uINbF4IZoY0ovz4p5HUb/Va+HY0Nr/ei6aqfh/gX3 jCmeEOeKTeoeufXMreUY4OPAkMGhBmKPeyXjPgyGPxgccyMxSwpld0LkEawnvSnV jqWwlteve4OaKw== X-ME-Sender: X-Sasl-enc: AJgbShSeNc3636cNyivrh6I4VZ3ZSoeoUPLSBh39fASx 1490187308 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A0857E4B2; Wed, 22 Mar 2017 08:55:08 -0400 (EDT) Subject: Re: Monitoring roles patch To: Dave Page , Robert Haas References: Cc: PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 22 Mar 2017 08:55:07 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 On 3/22/17 07:48, Dave Page wrote: > With the patch, complex monitoring systems can easily be setup with > something like: > > CREATE ROLE monitoring_user LOGIN; > GRANT pg_monitor TO monitoring_role; That assumes that we have thought of all the ways in which people might want to monitor things. If we do it via GRANTs instead, then users can easily extend it. If we instead change the hardcoded superuser checks to hardcoded some-other-role checks, then the whole system instantly becomes unusable the moment someone wants to monitor something we haven't thought of. -- Peter Eisentraut 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