Re: Grant all privileges to user on a database

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Kaushal Shriyan <kaushalshriyan(at)gmail(dot)com>
Cc: Ron <ronljohnsonjr(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Grant all privileges to user on a database
Date: 2023-07-24 13:56:28
Message-ID: CAKFQuwaJ=zeoBjdh9pMMWN34Y-rdhc4xmvT37YKWuBZcNjYR2Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, July 24, 2023, Kaushal Shriyan <kaushalshriyan(at)gmail(dot)com> wrote:

>
>
> Are you sure the configured username has the necessary permissions to
> create tables in the database?
>

The error message is misleading, you can’t directly create tables in a
database, you must create them in a schema and the permission to do so is
granted to the role on the schema, not the database.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-07-24 14:09:06 Re: Grant all privileges to user on a database
Previous Message Adrian Klaver 2023-07-24 13:42:27 Re: \d don't print all the tables