![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
On Thu, Jul 28, 2005 at 12:48:35PM +0100, Sean Burlington wrote: Description: inheritance removes permissions from the parent table I think a more accurate description would be "permissions not inherited by children," and that isn't necessarily a bug. |
|
Records in the child are visible when you select from the parent, so it follows that you'd need permission on both tables. If you want only records that are in the parent then use FROM ONLY: SELECT * FROM ONLY a; |
#2
| |||
| |||
|
|
On Thu, Jul 28, 2005 at 03:56:14PM +0100, Sean Burlington wrote: Michael Fuhr wrote: On Thu, Jul 28, 2005 at 12:48:35PM +0100, Sean Burlington wrote: Description: inheritance removes permissions from the parent table I think a more accurate description would be "permissions not inherited by children," and that isn't necessarily a bug. I agree it may not be a bug - but it's more than the permissions not being inherited: the parent is affected. Not really, once you understand what's happening. Unless you use FROM ONLY, selecting from the parent selects from the parent *and* its children. The parent itself isn't affected, as queries with FROM ONLY should demonstrate. I understand what you're saying -- that there's an apparent effect on the parent -- but there really isn't. It would be handy if this was in the documentation for anyone else who comes across this issue Feel free to submit a documentation patch to pgsql-patches :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |