Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a7rpM-0003SL-Gf for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Dec 2015 21:35:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a7rpL-0005XB-Gc for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Dec 2015 21:35:39 +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) (envelope-from ) id 1a7rpJ-0005X2-Kq for pgsql-hackers@postgresql.org; Sat, 12 Dec 2015 21:35:37 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a7rpG-00044h-Jo for pgsql-hackers@postgresql.org; Sat, 12 Dec 2015 21:35:36 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id C758B5F795; Sat, 12 Dec 2015 16:35:32 -0500 (EST) Date: Sat, 12 Dec 2015 16:35:32 -0500 From: Stephen Frost To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: [COMMITTERS] pgsql: Handle policies during DROP OWNED BY Message-ID: <20151212213532.GX3685@tamriel.snowman.net> References: <566C82B4.5050000@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Zu0hoGZY3BUhTgO1" Content-Disposition: inline In-Reply-To: <566C82B4.5050000@gmx.net> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 16:30:11 up 130 days, 6:00, 12 users, load average: 0.19, 0.08, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 --Zu0hoGZY3BUhTgO1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Peter Eisentraut (peter_e@gmx.net) wrote: > On 12/11/15 4:12 PM, Stephen Frost wrote: > > As with ACLs, the DROP OWNED BY caller must have permission to modify > > the policy or a WARNING is thrown and no change is made to the policy. >=20 > That warning doesn't tell the user anything about how to fix the > situation or whether or why the situation is a problem and what to do > about it. I modeled it after the other warnings which are output by DROP OWNED BY when it's unable to perform the requested drop. I'm not against trying to add something, but you tend to get a bunch of those messages at once which means having a hint would result in a bunch of repeated messages and I don't think that'd be very helpful. Further, it's essentially a 'permission denied' type of error, which generally means that the individual who is running it can't do anything to fix it anyway. I'm not against looking to improve things here, but I don't think just trying to make a change here makes sense. We could throw a warning+hint at the end of DROP OWNED, if anything wasn't able to be dropped, which provided more information, perhaps. I'm not convinced that would really be very useful to the individual running the command and would need to, in essence, be "please get someone with higher privileges to run this, or get them to give you permission to run it". I don't think we really want to go there (anyone else recall the "please see your network administrator" errors..?). If I'm misunderstanding your thoughts here, please let me know. Thanks! Stephen --Zu0hoGZY3BUhTgO1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWbJMjAAoJEO1sijiDR2RVnI8QAMhyr0AH2ZD37ktPTfijU9Zf 9GIcUKmfa8DirPFtaMXFSX4rNcoyb++Ngq2Qj4viFCigWv4iXFFGbd+zED3f245p UTJx4hsNyIt7MbZ/3Faj3jcO1Gj78KjB0zAbskX/cyG6oivFM2Do/vpnrwVONQfS 2cnw+dieA4SdK2tE/p7cQX5a+QNYq+O0DpcLmLQkUYJkOEtuPq/br6oA00mukU91 KKfrJFzwxHsLsAuG8v+jf5D/nL6ximSAzuKSiEVlcDSX4OuzQn+qOvCiJYhCBEzX 4cUDhJbSeZieRrYzLJ8iB0aVIMzk656qOs2BQpXxJoo4XIU5TlwU7v0sQQJ1BFDW dFBhrpJ1wgarZ3WFwVGmemtXPmNxACRe5IFQOxYLM+VA1qnqvGtZMwngvJVs2pM3 iF7NQk5+0v7lCIp9ZKns66zl/iTWCNr9gbnBsGFRkVFSzG1A1CV2ZqGPxTqUfki6 6G/belD0hTWWZeg1/XM+m4T26pzxcTJaq3BsHDyFCoTzcB6eR69Hzl69jfl/KaJM D+68LD0tUrJ0PwCsCuVI96BzLltvbJUDKJcYx9BxCfKV3wIpDyVdIwaaphLwqGim RQzjdNmTbU0qXD/wMFMmez9gFzhX9ukD1xq6MAQsD15sg2Lecsv3wOBr7OWiSmuD 1u0rT5FbsSXnrUp9x7us =2oFz -----END PGP SIGNATURE----- --Zu0hoGZY3BUhTgO1--