pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Permission to create a table in postgresql database
3+ messages / 3 participants
[nested] [flat]

* Permission to create a table in postgresql database
@ 2021-01-08 13:58 dbatoCloud Solution <dbatocloud17@gmail.com>
  2021-01-08 14:11 ` Re: Permission to create a table in postgresql database Paul Förster <paul.foerster@gmail.com>
  2021-01-08 14:40 ` Re: Permission to create a table in postgresql database Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 2 replies; 3+ messages in thread

From: dbatoCloud Solution @ 2021-01-08 13:58 UTC (permalink / raw)
  To: pgsql-admin

Hello All

I want to grant permission to user to create a table, alter table , create
sequence in postgresql database .

Please advice me

Thanks and Best Regards,
Ashok

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Permission to create a table in postgresql database
  2021-01-08 13:58 Permission to create a table in postgresql database dbatoCloud Solution <dbatocloud17@gmail.com>
@ 2021-01-08 14:11 ` Paul Förster <paul.foerster@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Paul Förster @ 2021-01-08 14:11 UTC (permalink / raw)
  To: dbatoCloud Solution <dbatocloud17@gmail.com>; +Cc: pgsql-admin

Hi Ashok,

> On 08. Jan, 2021, at 14:58, dbatoCloud Solution <dbatocloud17@gmail.com> wrote:
> 
> I want to grant permission to user to create a table, alter table , create 
> sequence in postgresql database .
> 
> Please advice me

see: https://www.postgresql.org/docs/current/sql-grant.html

I guess, the first syntax should be what you want.

Cheers,
Paul




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Permission to create a table in postgresql database
  2021-01-08 13:58 Permission to create a table in postgresql database dbatoCloud Solution <dbatocloud17@gmail.com>
@ 2021-01-08 14:40 ` Laurenz Albe <laurenz.albe@cybertec.at>
  1 sibling, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2021-01-08 14:40 UTC (permalink / raw)
  To: dbatoCloud Solution <dbatocloud17@gmail.com>; pgsql-admin

On Fri, 2021-01-08 at 19:28 +0530, dbatoCloud Solution wrote:
> I want to grant permission to user to create a table, alter table , create 
> sequence in postgresql database .

Every user is always allowed to create tables and sequences,
and every user can alter objects that it owns.

To allow a user to create an object in a certain schema,
give the user the CREATE privilege on the schema.

Yours,
Laurenz Albe
-- 
+43-670-6056265
CYBERTEC PostgreSQL International GmbH
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: https://www.cybertec-postgresql.com






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-01-08 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 13:58 Permission to create a table in postgresql database dbatoCloud Solution <dbatocloud17@gmail.com>
2021-01-08 14:11 ` Paul Förster <paul.foerster@gmail.com>
2021-01-08 14:40 ` Laurenz Albe <laurenz.albe@cybertec.at>

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