pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: richard coleman <rcoleman.ascentgl@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Case sensitive grant statements in pg14?
Date: Thu, 21 Dec 2023 13:36:26 -0500
Message-ID: <796632.1703183786@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGA3vBua6YVJBDKfsaE51U6X0fO5bRfvOtsLFSd+KTy3J95LtA@mail.gmail.com>
References: <CAGA3vBua6YVJBDKfsaE51U6X0fO5bRfvOtsLFSd+KTy3J95LtA@mail.gmail.com>

richard coleman <rcoleman.ascentgl@gmail.com> writes:
> grant create, usage on schema {schema_name} to {role};

> fails with the error:
> ERROR: syntax error at or near "{role}"

> but by changing the capitalization of the statement to:
> GRANT CREATE, USAGE ON SCHEMA {schema_name} TO {role};

> completes successfully.

What are you expecting will replace "{role}" with something
valid?  Whatever that is is apparently somehow dependent
on the context being upper-case.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <796632.1703183786@sss.pgh.pa.us>
Permalink:  ../796632.1703183786@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/796632.1703183786@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rcoleman.ascentgl@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Case sensitive grant statements in pg14?
  In-Reply-To: <796632.1703183786@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox