Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLTR2-0002fC-TN for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 18:26:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pLTR0-0003xZ-MP for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 18:26:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLTR0-0003wg-Cb for pgsql-hackers@lists.postgresql.org; Fri, 27 Jan 2023 18:26:46 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLTQx-0000fu-AH for pgsql-hackers@postgresql.org; Fri, 27 Jan 2023 18:26:45 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E68F65C0082; Fri, 27 Jan 2023 13:26:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 27 Jan 2023 13:26:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1674844000; x=1674930400; bh=g mAKyY9jBUiFYMH38PjbSXIv1+bKo/nLne6riXny14o=; b=n7a3iDsXvaBqh+pK/ fm/dTurUw4T00bZIrcQYqI/fCAJtdaoBFIeYLzgMfvbgWDFhTV2evgLxbsU6DMJl 09wtDO8LZ46C2Baw6TgkuHoO1RPoFLxhDd1yuKGDHMs2/Z9zof6nvdfRvlOeUh3U +AEjpOE+4f0ClMtgtktQqBOZ0zgbdmS5IahRCEkw4CEWsfYoswTM9T+cX5ryF5/x bkv/1phkgapBChfKetyQiLfBuktIp+VJN/wz887/Qbs/B7WY2qnn+vkrP88Ow3kA Xtdkg03IXSNlUP3VAIEGVQG5i95UWBEc4V762bF8R+W4zjjJJhbUdIGPq7HLRZCu D9Y0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddviedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Jan 2023 13:26:40 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2FC0F98; Fri, 27 Jan 2023 19:13:58 +0100 (CET) Date: Fri, 27 Jan 2023 19:13:58 +0100 From: Alvaro Herrera To: Tom Lane Cc: Robert Haas , Peter Eisentraut , Nathan Bossart , "pgsql-hackers@postgresql.org" Subject: Re: improving user.c error messages Message-ID: <20230127181358.2owdhebwydo77jwa@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3335491.1674836233@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Jan-27, Tom Lane wrote: > Good point. My vote is for standardizing on *not* mentioning it. > Error messages should say "you need privilege X". That is not > the place to go into all the ways you could hold privilege X > (one of which is being superuser). +1 -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "El sabio habla porque tiene algo que decir; el tonto, porque tiene que decir algo" (Platon).