Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXpGm-00076s-EK for pgsql-performance@arkaria.postgresql.org; Wed, 19 Jul 2017 13:44:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dXpGl-0005Ut-RE for pgsql-performance@arkaria.postgresql.org; Wed, 19 Jul 2017 13:44:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dXpGl-0005UF-5C for pgsql-performance@postgresql.org; Wed, 19 Jul 2017 13:44:03 +0000 Received: from lb2-smtp-cloud3.xs4all.net ([194.109.24.26]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dXpGh-0003CP-MN for pgsql-performance@postgresql.org; Wed, 19 Jul 2017 13:44:02 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:211]) by smtp-cloud3.xs4all.net with ESMTP id mdjv1v00i5LLN1B01djvkd; Wed, 19 Jul 2017 15:43:58 +0200 Received: from mail.genj.nl ([77.242.116.162]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Wed, 19 Jul 2017 15:43:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 19 Jul 2017 15:43:55 +0200 From: vinny To: Dinesh Chandra 12108 Cc: pgsql-performance-owner@postgresql.org, pgsql-performance@postgresql.org Subject: Re: How to grant only create schemas and create database objects permission to user. In-Reply-To: References: Message-ID: <5ccd93b10b3925df4a3ca2f8ee0ff6fc@xs4all.nl> X-Sender: vinny@xs4all.nl User-Agent: XS4ALL Webmail List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 2017-07-19 14:23, Dinesh Chandra 12108 wrote: > Dear expert, > > I have to create a user which have permission to CREATE SCHEMAS AND > CREATE DATABASE OBJECTS in database. > > I am using postgres 9.1. > > Could you please assist me? Access control is managed using the GRANT command: https://www.postgresql.org/docs/9.1/static/sql-grant.html About halfway down that page it says: ----- CREATE For databases, allows new schemas to be created within the database. For schemas, allows new objects to be created within the schema. To rename an existing object, you must own the object and have this privilege for the containing schema. For tablespaces, allows tables, indexes, and temporary files to be created within the tablespace, and allows databases to be created that have the tablespace as their default tablespace. (Note that revoking this privilege will not alter the placement of existing objects.) ---- I suggest you try it out on a test database first. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance