Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amYLF-0005DI-U2 for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Apr 2016 03:04:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1amYLF-0007OV-DX for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Apr 2016 03:04:45 +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 1amYLE-0007Nk-AS for pgsql-hackers@postgresql.org; Sun, 03 Apr 2016 03:04:44 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amYLB-0004Qm-2R for pgsql-hackers@postgresql.org; Sun, 03 Apr 2016 03:04:42 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id EF4A35F795; Sat, 2 Apr 2016 23:04:39 -0400 (EDT) Date: Sat, 2 Apr 2016 23:04:39 -0400 From: Stephen Frost To: Noah Misch Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Re: [COMMITTERS] pgsql: Refer to a TOKEN_USER payload as a "token user, " not as a "user Message-ID: <20160403030439.GL10850@tamriel.snowman.net> References: <20160402021211.GH10850@tamriel.snowman.net> <20160402024613.GC1545657@tornado.leadboat.com> <20160402025113.GI10850@tamriel.snowman.net> <9653.1459566421@sss.pgh.pa.us> <20160403030223.GA1583947@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4dlmIwqylWgRDx7z" Content-Disposition: inline In-Reply-To: <20160403030223.GA1583947@tornado.leadboat.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 23:03:52 up 39 days, 23:56, 11 users, load average: 0.13, 0.08, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.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 --4dlmIwqylWgRDx7z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Noah Misch (noah@leadboat.com) wrote: > On Fri, Apr 01, 2016 at 11:07:01PM -0400, Tom Lane wrote: > > Stephen Frost writes: > > > * Noah Misch (noah@leadboat.com) wrote: > > >> I see some advantages of writing "TokenUser", as you propose. Howev= er, our > > >> error style guide says "Avoid mentioning called function names, eith= er; > > >> instead say what the code was trying to do." Mentioning an enumerat= or name is > > >> morally similar to mentioning a function name. > >=20 > > > That's a fair point, but it doesn't mean we should use a different > > > spelling for the enumerator name to avoid that piece of the policy. I > > > certianly don't see "token user" as saying "what the code was trying = to > > > do" in this case. > >=20 > > FWIW, "token user" conveys entirely inappropriate, politically incorrect > > connotations to me ;-). I don't have any great suggestions on what to = use > > instead, but I share Stephen's unhappiness with the wording as-committe= d. >=20 > The wording in GetTokenUser() and AddUserToTokenDacl() seems fine; let's > standardize on that. Also, every GetTokenUser() failure has been yieldin= g two > messages, the second contributing no further detail. I'll reduce that to= the > usual one message per failure. This approach works for me. Thanks! Stephen --4dlmIwqylWgRDx7z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXAIhHAAoJEO1sijiDR2RVXBYP+gMtmanm37pf49EfuPkCuEFo NZGFEij1OpOe4FvQkbNLch72vLoUCRs/Lg3QJrzOJCXSkdkuPFIcxlIlMUXurIhA qK0nPOuQ7Wav0R5dS7xPCseku4R3QP+86AVFkp4xN3eoIExCQwypY0zm5oeduL5q MVhPNDQ8QewId9LBQwF5rKmxG+IVW/qWxDJmRu0vX1QNtgCA0f3t9uYshoaxYRln CshvkBZ+jXp3J1JIHoW6Spat9C6cRHcW5dWglNecjg1iSIYuL0PiTb9n5WO5t23z 0fmV6Nm7g0Fu7fbd+A9WepyypiVz0GvjpPJW+HY2WiY/XePbsmGBd191fvLLFaFr L9j8TX3RCospOvp1AAEadssYVW6ZO3RMC7UcVhDzPMnoLnwIYBFHBzPpiMfVhQjX NCZCdJ42445HgoJpA9ccAkyHaFYVrYYpgaH563qW7Q2Y7wsG8k9DO7Ys4bqOkiXa qPHNUkVeUhny3OXJRMuS9PW4RuzVu319xBGU2GmwZpD3IF7KRfIgj2LWNDuTta9Y 19JwUdlPioNFjpOK+om12ZTWsfyIOLjyu0KWIPPP0StmPjmu8Q5VKWuRbpUoQLex fCT3I4CT6nWpQVXk1h30AZI8AWme4PvMuc31WyBS9ATphHI5F1oafPb1pR/bX3SK Ntm39AXPEqLH4C0E5sjz =YOnE -----END PGP SIGNATURE----- --4dlmIwqylWgRDx7z--