Re: default namespace (schema) confusion - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: default namespace (schema) confusion
Date
Msg-id 200210180239.g9I2d2F18513@candle.pha.pa.us
Whole thread Raw
In response to Re: default namespace (schema) confusion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I dislike double-testing the username in schema areas but not other
> > places.  Seems if we do it, we should do it consistently for all
> > username references, or not at all.
> 
> What other places do we have an explicit dependence on the username?

Uh, what about CREATE/ALTER/DROP USER, and pg_hba.conf.  Of course,
those are more admin, but isn't the schema also sort of admin too?

I am also concerned about opening cases where a CURRENT_USER test
doesn't match the user's schema.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: default namespace (schema) confusion
Next
From: Tom Lane
Date:
Subject: Re: COPY syntax