From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Ron Snyder <snyder(at)roguewave(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Schemas and template1 |
Date: | 2002-06-11 23:36:33 |
Message-ID: | 200206112336.g5BNaX728789@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Ron Snyder wrote:
> > As part of createdb, the new database will have to have it's public
> > schema changed to world-writable.
>
> I have to admit that much of the schema related discussion has been over my
> head, but I think what I understand you to be saying here is that the
> default would be to allow anybody to create tables in any database that they
> connect to, in the same way that they currently can (with pg <= 7.2.1).
>
> (If that's not the case, you can ignore the rest of the message.)
The issue I was raising is the creation of tables in the default
'public' schema, which is the one used by users who don't have a schema
matching their name. I was saying that template1 should prevent
creation of tables by anyone but the superuser.
As far as temp tables, I think we should enable that for all
non-template1 databases.
(In fact, what happens if you create a database while a temp table
exists in template1. Seems it would not be cleaned up in the new
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
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-06-12 02:56:40 | Re: Mac OS X shutdown |
Previous Message | Ron Snyder | 2002-06-11 23:12:09 | Re: Schemas and template1 |