Re: [ADMIN] phantom rights
От | Scott Marlowe |
---|---|
Тема | Re: [ADMIN] phantom rights |
Дата | |
Msg-id | CAOR=d=3ur1Sp8V=OwQF-LT733Kt_Eqn6nNTKpy-A2bGcKLdsYw@mail.gmail.com обсуждение исходный текст |
Ответ на | [ADMIN] phantom rights (Thomas Poty <thomas.poty@gmail.com>) |
Ответы |
Re: [ADMIN] phantom rights
|
Список | pgsql-admin |
On Tue, Aug 1, 2017 at 7:53 AM, Thomas Poty <thomas.poty@gmail.com> wrote: > Hello world, > > I wonder if the problem of "phantom rights" exists in Postgresql 9.5 as it > exists in MySQL. > > What happens with privileges if : > - I create a table t1 > - I grant to user u1 some privileges for the table t1 > - I drop table t1; > - and I recreate de same table t1 > > Are these privileges still existing or completely revoked/deleted with the > drop table statement? Easy enough to test: create table test (a int, b text); CREATE TABLE smarlowe=# \z test Access privileges Schema | Name | Type | Access privileges | Column privileges | Policies --------+------+-------+-------------------+-------------------+---------- public | test | table | | grant select on test to stan; GRANT smarlowe=# \z test Access privileges Schema | Name | Type | Access privileges | Column privileges | Policies --------+------+-------+---------------------------+-------------------+---------- public | test | table | smarlowe=arwdDxt/smarlowe+| | | | | stan=r/smarlowe | | smarlowe=# drop table test; DROP TABLE smarlowe=# create table test (a int, b text); CREATE TABLE smarlowe=# \z test Access privileges Schema | Name | Type | Access privileges | Column privileges | Policies --------+------+-------+-------------------+-------------------+---------- public | test | table | | | So no, no phantom permissions.
В списке pgsql-admin по дате отправления: