Case sensitive grant statements in pg14?

From: richard coleman <rcoleman(dot)ascentgl(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Case sensitive grant statements in pg14?
Date: 2023-12-21 18:26:03
Message-ID: CAGA3vBua6YVJBDKfsaE51U6X0fO5bRfvOtsLFSd+KTy3J95LtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello all,

Just ran across a really strange thing in a PostgreSQL 14 database.
Apparently grant statements are now somehow case sensitive.

ex:
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.

Is this something new?

Thanks,
rik.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2023-12-21 18:36:26 Re: Case sensitive grant statements in pg14?
Previous Message tayyab.humayl 2023-12-21 16:21:31 Error: Package: postgresql13-devel-13.13-1PGDG.rhel7.x86_64