Re: grant all privileges to all tables in a database - Mailing list pgsql-general

From Daniel Verite
Subject Re: grant all privileges to all tables in a database
Date
Msg-id 20050411032455.1185194@localhost
Whole thread Raw
In response to grant all privileges to all tables in a database  (Florin Andrei <florin@andrei.myip.org>)
Responses Re: grant all privileges to all tables in a database  (Florin Andrei <florin@andrei.myip.org>)
List pgsql-general
    Florin Andrei wrote:

> On MySQL, it's enough to do this:
>
> GRANT ALL PRIVILEGES ON dbname.* TO username [IDENTIFIED BY 'password'];
>
> On PostgreSQL, you have to give it privileges not only to the database,
> but to all components within (tables, sequences and whatnot). The
> following three commands will grant those privileges, first to the
> database, then to the tables, then to the sequences.

In this case, why not let 'username' create the database and all its objects so
that it will have all privileges on them afterwards without any specific GRANT
required?

--
 Daniel
 PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org


pgsql-general by date:

Previous
From: Janning Vygen
Date:
Subject: invalid input syntax for type bytea
Next
From: Edson Vilhena de Carvalho
Date:
Subject: Help!!