Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Schemas: status report, call for developers

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bill Cunningham <billc(at)ballydev(dot)com>,pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>,pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [HACKERS] Schemas: status report, call for developers
Date: 2002-06-08 05:42:35
Message-ID: 200206080542.g585gZr14259@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > I am a little uncomfortable about this.  It means that CREATE TABLE will
> > create a table in 'public' if the user doesn't have a schema of their
> > own, and in their private schema if it exists.  I seems strange to have
> > such a distinction based on whether a private schema exists.  Is this OK?
> 
> You have a better idea?
> 
> Given that we want to support both backwards-compatible and SQL-spec-
> compatible behavior, I think some such ugliness is inevitable.

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, or do I set it with SET,
perhaps in my per-user startup SET column?

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?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-hackers by date

Next:From: riseDate: 2002-06-08 07:12:24
Subject: Re: Use of /etc/services?
Previous:From: Scott ShattuckDate: 2002-06-08 05:41:26
Subject: Re: How can we help?

pgsql-interfaces by date

Next:From: Tom LaneDate: 2002-06-08 14:45:48
Subject: Re: [HACKERS] Schemas: status report, call for developers
Previous:From: Tom LaneDate: 2002-06-08 04:53:29
Subject: Re: [HACKERS] Schemas: status report, call for developers

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group