pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
groups in postgres
2+ messages / 1 participants
[nested] [flat]

* groups in postgres
@ 2001-04-18 15:20 Martín Marqués <martin@bugs.unl.edu.ar>
  0 siblings, 0 replies; 2+ messages in thread

From: Martín Marqués @ 2001-04-18 15:20 UTC (permalink / raw)
  To: pgsql-sql

I building an application that will load data on a database by lots of 
people. So I thought about putting them in a group and giving priviledges to 
the group.

The problem is the the information on the main table is related with fields 
of other tables, and depending on how it's related, I want some users to be 
able to modify the data and I don't want those users to insert new data if 
the relation is right for them.

Am I clear up to know?

Now, how can I do this? Is it posible manipulating groups? Or do I have to 
play with triggers.

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



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

* Re: groups in postgres
@ 2001-04-19 05:24 Martín Marqués <martin@bugs.unl.edu.ar>
  0 siblings, 0 replies; 2+ messages in thread

From: Martín Marqués @ 2001-04-19 05:24 UTC (permalink / raw)
  To: Richard Huxton <dev@archonet.com>; pgsql-sql

On Jue 19 Abr 2001 11:12, Richard Huxton wrote:
> Martín Marqués <martin@bugs.unl.edu.ar> said:
> > I building an application that will load data on a database by lots of
> > people. So I thought about putting them in a group and giving priviledges
> > to the group.
> >
> > The problem is the the information on the main table is related with
> > fields of other tables, and depending on how it's related, I want some
> > users to be able to modify the data and I don't want those users to
> > insert new data if the relation is right for them.
> >
> > Am I clear up to know?
> >
> > Now, how can I do this? Is it posible manipulating groups? Or do I have
> > to play with triggers.
>
> Sounds like you want different groups for different users, and a view for
> each group. You can then define rules for each view defining the access
> that is available.

They're gonna be groups of users, which will be loading data related to there 
group. I don't want the users from one group to load data related to other 
groups. And there is going to be a super-group that can change anything.

I'm not sure about the views and rules. Never used them. I'll check it out. 
;-)

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



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


end of thread, other threads:[~2001-04-19 05:24 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-18 15:20 groups in postgres Martín Marqués <martin@bugs.unl.edu.ar>
2001-04-19 05:24 Re: groups in postgres Martín Marqués <martin@bugs.unl.edu.ar>

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