pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
RES: Hiding table structure information
3+ messages / 3 participants
[nested] [flat]

* RES: Hiding table structure information
@ 2006-06-26 20:02 Rodrigo Sakai <rodrigo.sakai@zanthus.com.br>
  2006-06-26 20:48 ` RES: Hiding table structure information Carlos H. Reimer <carlosreimer@terra.com.br>
  0 siblings, 1 reply; 3+ messages in thread

From: Rodrigo Sakai @ 2006-06-26 20:02 UTC (permalink / raw)
  To: carlosreimer@terra.com.br; pgsql-admin

I think you have to use a view! You create a view on this table specifying
only the columns the user may have access, and then you give privileges on
this view instead of giving privileges on the table!



-----Mensagem original-----
De: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] Em nome de Carlos H. Reimer
Enviada em: segunda-feira, 26 de junho de 2006 14:40
Para: pgsql-admin@postgresql.org
Assunto: [ADMIN] Hiding table structure information

Hello,

Is there a way to hide the table definition structure from an user, even if
the user has privileges to select data from that table?

Reimer


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RES: Hiding table structure information
  2006-06-26 20:02 RES: Hiding table structure information Rodrigo Sakai <rodrigo.sakai@zanthus.com.br>
@ 2006-06-26 20:48 ` Carlos H. Reimer <carlosreimer@terra.com.br>
  2006-06-26 21:06   ` Re: RES: Hiding table structure information Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Carlos H. Reimer @ 2006-06-26 20:48 UTC (permalink / raw)
  To: rodrigo.sakai@zanthus.com.br; +Cc: pgsql-admin

Yes, a but even so, if the client uses a tool like pgAdmin, he can see all
the database structure. It?s because this kind of tool uses data from the
pg_catalog schema.

Maybe the question should be reformulted to: is there a way to hide
pg_catalog schema? I think it can?t not be done because all metadata are
there, but maybe somebody can see a solution.

Thanks in advance,

Reimer

> -----Mensagem original-----
> De: Rodrigo Sakai [mailto:rodrigo.sakai@zanthus.com.br]
> Enviada em: segunda-feira, 26 de junho de 2006 17:03
> Para: carlosreimer@terra.com.br; pgsql-admin@postgresql.org
> Assunto: RES: [ADMIN] Hiding table structure information
>
>
> I think you have to use a view! You create a view on this table specifying
> only the columns the user may have access, and then you give privileges on
> this view instead of giving privileges on the table!
>
>
>
> -----Mensagem original-----
> De: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] Em nome de Carlos H. Reimer
> Enviada em: segunda-feira, 26 de junho de 2006 14:40
> Para: pgsql-admin@postgresql.org
> Assunto: [ADMIN] Hiding table structure information
>
> Hello,
>
> Is there a way to hide the table definition structure from an
> user, even if
> the user has privileges to select data from that table?
>
> Reimer
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: RES: Hiding table structure information
  2006-06-26 20:02 RES: Hiding table structure information Rodrigo Sakai <rodrigo.sakai@zanthus.com.br>
  2006-06-26 20:48 ` RES: Hiding table structure information Carlos H. Reimer <carlosreimer@terra.com.br>
@ 2006-06-26 21:06   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2006-06-26 21:06 UTC (permalink / raw)
  To: carlosreimer@terra.com.br; +Cc: rodrigo.sakai@zanthus.com.br; pgsql-admin

"Carlos H. Reimer" <carlosreimer@terra.com.br> writes:
> Maybe the question should be reformulted to: is there a way to hide
> pg_catalog schema?

There is not.  My advice would be to put clients in separate databases
if you need that much isolation between them.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-06-26 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-26 20:02 RES: Hiding table structure information Rodrigo Sakai <rodrigo.sakai@zanthus.com.br>
2006-06-26 20:48 ` Carlos H. Reimer <carlosreimer@terra.com.br>
2006-06-26 21:06   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox