Re: changing MyDatabaseId

Поиск
Список
Период
Сортировка
От Markus Wanner
Тема Re: changing MyDatabaseId
Дата
Msg-id 4CE3A894.4050805@bluegap.ch
обсуждение исходный текст
Ответ на changing MyDatabaseId  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: changing MyDatabaseId  (Andres Freund <andres@anarazel.de>)
Re: changing MyDatabaseId  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: changing MyDatabaseId  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert,

On 11/15/2010 05:39 AM, Robert Haas wrote:
> I've spent a few hours pouring over the source code with
> coarse-toothed comb, trying to figure out just exactly what might
> break if we changed MyDatabaseId after backend startup time, or in
> other words, allowed a backend to unbind from the database to which it
> was originally bound and rebind to a new one.  This is related to the
> periodic conversations we've had about a built-in connection pooler,
> and/or maintaining a pool of worker threads that could be used to
> service parallel query, replication sets, etc.  What follows is not
> meant to be a concrete design proposal; it's basic research that may
> lead to a proposal at some time in the future.  Still, comments are
> welcome.

Thanks a lot for doing that, saved me a couple hours (presumably more
than it cost you :-)

> Thoughts?

The question obviously is whether or not this is faster than just
terminating one backend and starting a new one. Which basically costs an
additional termination and re-creation of a process (i.e. fork())
AFAICS. Or what other savings do you envision?

If that's it, it certainly seems like a huge amount of work for very
little benefit. Or does this feature enable something that's impossible
to do otherwise?

Regards

Markus Wanner


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: unlogged tables
Следующее
От: Andres Freund
Дата:
Сообщение: Re: changing MyDatabaseId