Re: dropdb to a remote host

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alex Avriette <a_avriette(at)acs(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: dropdb to a remote host
Date: 2001-11-20 18:23:09
Message-ID: 200111201823.fAKIN9528711@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Well, yeah, this is how that happened. Could you please make a note in the
> pg_hba.conf for future releases indicating if you prohibit connections to
> template1 that certain commands (dropdb being one of them) will not work?

I have added this to pg_hba.conf.sample:

# The superuser needs access to the 'template1' database because
# it is used by a variety of PostgreSQL utility commands.

However, this glaringly shows how poor our user-specific authentication
is in pg_hba.conf. You would have to create a password file with the
super user name in it and add that to the end of the template1 host line
to restrict just to superuser. Quite cumbersome.

Hopefully in 7.3 we will be able to put usernames in pg_hba.conf.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Arace 2001-11-20 19:05:15 Re: A newbie's opinion - postgres NEEDS a Windows binary!
Previous Message RoBSD 2001-11-20 18:17:50 NOTICE: (transaction aborted): queries ignored until END