Re: Set the permissions while creating database, schema, and tables

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: dipti shah <shahdipti1980(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Set the permissions while creating database, schema, and tables
Date: 2010-02-15 14:49:01
Message-ID: 20100215144901.GB2982@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dipti shah escribió:
> That's I know but I was wondering if there is anyway to do it while creating
> itself.

No. You can wrap the CREATE and the GRANT/REVOKE into a transaction so
that the object doesn't appear to users until permissions have been
fixed.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcin Krol 2010-02-15 14:54:11 CLUSTER cannot complete
Previous Message Marcin Krol 2010-02-15 14:46:25 CLUSTER cannot complete