Re: [HACKERS] Schemas: status report, call for developers - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [HACKERS] Schemas: status report, call for developers
Date
Msg-id 13614.1023547548@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Schemas: status report, call for developers  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] Schemas: status report, call for developers  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-interfaces
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I don't have a better idea, but I am wondering how this will work.  If I
> create a schema with my name, does it get added to the front of my
> schema schema search path automatically,

Yes (unless you've futzed with the standard value of search_path).

> If I want to prevent some users from creating tables in my database, do
> I remove CREATE on the schema using REVOKE SCHEMA, then create a schema
> for every user using the database?

Well, you revoke world create access on the public schema (or maybe even
delete the public schema, if you don't need it).  I don't see why you'd
give people their own schemas if the intent is to keep them from
creating tables.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Schemas: status report, call for developers
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Schemas: status report, call for developers