From: 戴松晚 <151359779@qq.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: How to implement the 'GRANT ALL ON DB1 TO 'USER'@'%' of MYSQL in PostgreSQL
Date: Tue, 8 Jan 2013 10:15:30 +0800
Message-ID: <tencent_36961A605AD496835A9F42E3@qq.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
<br>I have created a user(user1), and with this user I created a db1 and some tables, some functions in it.<br>Now I want to create another user(user2), and I want the two users can access everything in the database db1,<br>like GRANT ALL ON DB1 TO 'USER'@'%' ... in MYSQL.<br><br>For example:<br>1, The two users can access all of the exist relations.<br>2, User2 can access the relations that are created by user1 in the future without any 'grant....'.<br>3, User1 can access the tables, functions and so on that are created by user2.<br><br>Is there any way to do that?<br>Any insight would be greatly appreciated!<br><br><div><div style="color: rgb(144, 144, 144); font-family: Arial Narrow; font-size: 12px;">------------------</div><div style="font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0);">watson dai<br></div></div><div><br></div>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: 151359779@qq.com
Subject: Re: How to implement the 'GRANT ALL ON DB1 TO 'USER'@'%' of MYSQL in PostgreSQL
In-Reply-To: <tencent_36961A605AD496835A9F42E3@qq.com>
References: <tencent_36961A605AD496835A9F42E3@qq.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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