Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-27 Thread Bruce Momjian
Peter Eisentraut wrote: Tom Lane writes: I don't think GRANT CONNECT fits into our setup at all. I also doubt that it will be needed very much once we have schemas. People have many times asked for a way to alter the connection settings from within the database. For instance, you add

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-22 Thread Peter Eisentraut
Tom Lane writes: I don't think GRANT CONNECT fits into our setup at all. I also doubt that it will be needed very much once we have schemas. People have many times asked for a way to alter the connection settings from within the database. For instance, you add users in the database, but

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-22 Thread Bruce Momjian
Peter Eisentraut wrote: Bruce Momjian writes: I don't know. Automatically modifying a manually maintained config file isn't too common a feature. One problem would be if you where modifying the file in your editor and the backend rewrote the file. That's not different from you

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Bruce Momjian
Peter Eisentraut wrote: Bruce Momjian writes: I am adding users and groups to pg_hba.conf. You know what would be cool? GRANT CONNECT ON mydb TO GROUP myfriends; and it rewrites pg_hba.conf accordingly. Just a thought... We are actually not that far away. If you create a group

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Yes, that was the issue. We tell people pg_hba.conf only gets reloaded when they tell the postmaster to do it. We can't have it happening at random times, e.g. password change. I agree on that: the signal should cause the

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread mlw
Bruce Momjian wrote: Now, as far as rewriting pg_hba.conf, that goes into an area where we are not sure if the master connection information is in the file or in the database. We also get into a chicken and egg case where we have to have the database loaded to connect to it. I am

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Bruce Momjian
pgman wrote: Peter Eisentraut wrote: Bruce Momjian writes: I am adding users and groups to pg_hba.conf. You know what would be cool? GRANT CONNECT ON mydb TO GROUP myfriends; and it rewrites pg_hba.conf accordingly. Just a thought... We are actually not that far

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Peter Eisentraut
Bruce Momjian writes: I have another idea. What if we had a default group for each database, like pg_connect_{dbname}, and you can add/remove users from that group to grant/remove connection privileges? That strikes me as a very ugly abuse of the privilege system. If you want to grant a

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Bruce Momjian
Peter Eisentraut wrote: Bruce Momjian writes: I have another idea. What if we had a default group for each database, like pg_connect_{dbname}, and you can add/remove users from that group to grant/remove connection privileges? That strikes me as a very ugly abuse of the privilege

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Unfortunately, that would give us two places to specify the connecting users, pg_hba.conf and GRANT CONNECT. Is that a problem? Yes. What if they conflict? I don't think GRANT CONNECT fits into our setup at all. I also doubt that it will be needed

Re: [HACKERS] Problem with reloading groups in pg_hba.conf

2002-03-21 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Unfortunately, that would give us two places to specify the connecting users, pg_hba.conf and GRANT CONNECT. Is that a problem? Yes. What if they conflict? I don't think GRANT CONNECT fits into our setup at all. I also doubt