pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: R D <mrk279@yahoo.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Granting Permissions to User To Access Database
Date: Wed, 10 Jan 2001 00:54:57 -0800 (PST)
Message-ID: <20010110085457.66855.qmail@web10012.mail.yahoo.com> (raw)


--- Peter Eisentraut <peter_e@gmx.net> wrote:
> R D writes:
> 
> > This is one of the features of PgSQL that I do not
> > like. It is much nicer to type:
> > "grant all on database.table to ....."
> > And I asked the developers to do that but they did
> not
> > take it very seriously.
> 
> The problem with this approach is that if you do
> "revoke all on database
> from all" you have hosed your system.  Text files
> allow recovery in these
> situations.

It could be found some workarround of the problem.
Probably some key in postgres will do to use the 
pg_hba.conf instead. So you will be able to connect
and
repare the problem ;).

Another solution could be some statement in
pg_hba.conf telling the postgresql to use internal
database privileges instead of this defined in
pg_hba.conf, and when the problem occurs you just
swich to the db privileges defined in pg_hba.conf.This
will make you able to connect and repare the problem
(What i meen with internal and external privileges?
OK! same as the internal and the external passwords) 

The second one has some advantages: you can repare the
problem without restarting the postgresql.

> > There is one thing I do not like: you can not
> disallow
> > users to create tables. Every user having access
> to a
> > database can create a table in it. This was in the
> > todo list of 7.1 but now it is removed. Stupid...
> 
> It was not possible to implement it without busting
> pg_dumpall, thus
> creating an upgrading nightmare.  It will be in 7.2.
>

I hope to see this :)

regards, 
Rumen 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



view thread (8+ messages)  latest in thread

Message-ID: <20010110085457.66855.qmail@web10012.mail.yahoo.com>
Permalink:  ../20010110085457.66855.qmail@web10012.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010110085457.66855.qmail@web10012.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mrk279@yahoo.com, peter_e@gmx.net
  Subject: Re: Granting Permissions to User To Access Database
  In-Reply-To: <20010110085457.66855.qmail@web10012.mail.yahoo.com>
  References: <20010110085457.66855.qmail@web10012.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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