Re: pg_upgrade using appname to lock out other users

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_upgrade using appname to lock out other users
Дата
Msg-id 1308167965.30599.1.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: pg_upgrade using appname to lock out other users  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: pg_upgrade using appname to lock out other users  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On ons, 2011-06-15 at 13:35 -0400, Bruce Momjian wrote:
> I now believe we are overthinking all this.  pg_upgrade has always
> supported specification of a port number.  Why not just tell users to
> specify an unused port number > 1023, and not to use the default
> value?  Both old and new clusters will happily run on any specified
> port number during the upgrade.  This allows the lockout to work for
> both old and new clusters, which is better than enhancing -b because
> that will only be for > 9.1 servers. 

On non-Windows servers you could get this even safer by disabling the
TCP/IP socket altogether, and placing the Unix-domain socket in a
private temporary directory.  The "port" wouldn't actually matter then.



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Strict Set Returning Functions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: flexible array members