Re: pg_upgrade using appname to lock out other users

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_upgrade using appname to lock out other users
Дата
Msg-id 201106151202.p5FC2x500199@momjian.us
обсуждение исходный текст
Ответ на Re: pg_upgrade using appname to lock out other users  (Jesper Krogh <jesper@krogh.cc>)
Список pgsql-hackers
Jesper Krogh wrote:
> On 2011-06-15 05:01, Bruce Momjian wrote:
> > You might remember we added a postmaster/postgres -b switch to indicate
> > binary upgrade mode.  The attached patch prevents any client without an
> > application_name of 'binary-upgrade' from connecting to the cluster
> > while it is binary upgrade mode.  This helps prevent unauthorized users
> > from connecting during the upgrade.  This will not help for clusters
> > that do not have the -b flag, e.g. pre-9.1.
> >
> > Does this seem useful?  Something for 9.1 or 9.2?
> >
> > This idea came from Andrew Dunstan via IRC during a pg_upgrade run by
> > Stephen Frost when some clients accidentally connected.  (Stephen reran
> > pg_upgrade successfully.)
> Couldn't the -b flag also imply a very strict hba.conf configuration, that
> essentially only lets pg_upgrade in..?

Yes, it could.  What rules would we use?  We could prohibit non-local
connections.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: testing nested case-when scoping
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade using appname to lock out other users