Received: from web10012.mail.yahoo.com (web10012.mail.yahoo.com [216.136.172.123]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0A8swB11185 for ; Wed, 10 Jan 2001 03:54:58 -0500 (EST) (envelope-from mrk279@yahoo.com) Message-ID: <20010110085457.66855.qmail@web10012.mail.yahoo.com> Received: from [212.95.170.251] by web10012.mail.yahoo.com; Wed, 10 Jan 2001 00:54:57 PST Date: Wed, 10 Jan 2001 00:54:57 -0800 (PST) From: R D Subject: Re: Granting Permissions to User To Access Database To: Peter Eisentraut Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200101/43 X-Sequence-Number: 414 --- Peter Eisentraut 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/