Search Postgresql Archives

Grant on table without access to other tables structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

  I will explain what I need with a simple example.

  I have three tables:
     jobs, people, cities

  I have to grant select on people to john.

    GRANT SELECT ON PEOPLE TO JOHN;

  Now, when john opens "psql", it can do the selects. That is OK.

  But when john does
    \d
    \d cities

  He can see the other table names and structures...

  How can I revoke this rights?

  How can I create a new user and give him select rights on some tables,
but not disclosure the full database tables and fields?

  PG is 8.3

  Thanks,
  Pedro

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux