Re: changing MyDatabaseId

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: changing MyDatabaseId
Дата
Msg-id 1289825681-sup-174@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: changing MyDatabaseId  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: changing MyDatabaseId  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Excerpts from Tom Lane's message of lun nov 15 02:41:40 -0300 2010:

> I believe also that there are probably race conditions in several of
> the steps you listed; in particular there is certainly a risk involved
> in changing the database-we-advertise-being-connected-to versus a
> concurrent DROP DATABASE.  Maybe that's easily soluble, but I'm not sure
> about it.

Perhaps it would help to first disconnect from the original database and
not reconnect to any one in particular, i.e. stay in a state like the
autovac launcher is in.  Then cleanup as per Robert's list, then switch
to a valid database ID.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: Amazon now supporting GPU focused EC2 instances
Следующее
От: Robert Haas
Дата:
Сообщение: Re: changing MyDatabaseId