Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rGOgi-00F5IU-B9 for pgsql-admin@arkaria.postgresql.org; Thu, 21 Dec 2023 19:26:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rGOgh-00DKTF-0g for pgsql-admin@arkaria.postgresql.org; Thu, 21 Dec 2023 19:26:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rGOgg-00DKT4-L1 for pgsql-admin@lists.postgresql.org; Thu, 21 Dec 2023 19:26:30 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rGOge-00DDnO-9c for pgsql-admin@lists.postgresql.org; Thu, 21 Dec 2023 19:26:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3BLJQQXM832931; Thu, 21 Dec 2023 14:26:26 -0500 From: Tom Lane To: richard coleman cc: Pgsql-admin Subject: Re: Case sensitive grant statements in pg14? In-reply-to: References: <796632.1703183786@sss.pgh.pa.us> Comments: In-reply-to richard coleman message dated "Thu, 21 Dec 2023 13:45:38 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <832929.1703186786.1@sss.pgh.pa.us> Date: Thu, 21 Dec 2023 14:26:26 -0500 Message-ID: <832930.1703186786@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk richard coleman writes: > I am having instances of (substituting example names for schema and role): > grant create, usage on schema my_schema to bob; > returning the error message: > ERROR: syntax error at or near "bob" > but: > GRANT CREATE, USAGE ON SCHEMA my_schema TO bob; > succeeding. > I hope that's clearer. Well, it's clearer, but I don't believe it. What I think is far more likely an explanation is that you've got some weird non-ASCII whitespace in the first version of the command. Copying-and-pasting from your mail doesn't show anything strange though. regards, tom lane