Re: Grant all privileges to user on a database

2023-07-24 Thread David G. Johnston
On Mon, Jul 24, 2023 at 7:52 AM Ron wrote: > On 7/24/23 09:09, Tom Lane wrote: > > > GRANT ALL ON SCHEMA public TO public; > > I'd have naively expected "GRANT ALL ON SCHEMA public TO public; " to be > taken care of by "GRANT ALL PRIVILEGES ON DATABASE cbdevdb TO > cbdevdbadmin;". > > I'm quite h

Re: Grant all privileges to user on a database

2023-07-24 Thread Ron
On 7/24/23 09:09, Tom Lane wrote: "David G. Johnston" writes: 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. The actual server message is going

Re: Grant all privileges to user on a database

2023-07-24 Thread Tom Lane
"David G. Johnston" writes: > 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. The actual server message is going to be just ERROR: permission

Re: Grant all privileges to user on a database

2023-07-24 Thread David G. Johnston
On Monday, July 24, 2023, Kaushal Shriyan 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

Re: Grant all privileges to user on a database

2023-07-24 Thread Kaushal Shriyan
On Mon, Jul 24, 2023 at 6:51 PM Ron wrote: > > On 7/24/23 08:15, Kaushal Shriyan wrote: > > Hi, > > > > I am running postgresql15-server 15.3 on Red Hat Enterprise Linux > > release 8.7 (Ootpa) > > > > # rpm -qa | grep -i post > > postgresql15-server-15.3-2PGDG.rhel8.x86_64 > > postgresql15-libs-1

Re: Grant all privileges to user on a database

2023-07-24 Thread Ron
On 7/24/23 08:15, Kaushal Shriyan wrote: Hi, I am running postgresql15-server 15.3 on Red Hat Enterprise Linux release 8.7 (Ootpa) # rpm -qa | grep -i post postgresql15-server-15.3-2PGDG.rhel8.x86_64 postgresql15-libs-15.3-2PGDG.rhel8.x86_64 postgresql15-15.3-2PGDG.rhel8.x86_64 # $psql psql (1

Grant all privileges to user on a database

2023-07-24 Thread Kaushal Shriyan
Hi, I am running postgresql15-server 15.3 on Red Hat Enterprise Linux release 8.7 (Ootpa) # rpm -qa | grep -i post postgresql15-server-15.3-2PGDG.rhel8.x86_64 postgresql15-libs-15.3-2PGDG.rhel8.x86_64 postgresql15-15.3-2PGDG.rhel8.x86_64 # $psql psql (15.3) Type "help" for help. postgres=# GRAN