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

Re: [HACKERS] Here it is - view permissions

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: matti(at)algonet(dot)se (Mattias Kregert)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Here it is - view permissions
Date: 1998-02-23 13:10:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> Bruce Momjian wrote:
> > 
> > OK, but why would anyone want the old behavior?
> > 
> > I guess if you have a table that is not select-able by everyone, and you
> > create a view on it, the default permits will allow select to others.
> > You would have to set the permit on that view.  Is there more to that
> > pg_class flag you want to add?
> Why does views default to 'select' permission for 'public'?
> I think most people will never think of the possibility that others
> will be able to SELECT their data through views.
> Should not 'create view' at least print a NOTICE about this?

All tables are created with default permissions for SELECT to PUBLIC, so
views are no different.

Bruce Momjian

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-02-23 13:15:17
Subject: Re: [HACKERS] Here it is - view permissions]
Previous:From: Andrew MartinDate: 1998-02-23 13:09:43
Subject: Re: [HACKERS] libpgtcl undefined symbol error with pgaccess-0.76

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