Re: [PATCH] Don't bail with legitimate -N/-B options

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Don't bail with legitimate -N/-B options
Дата
Msg-id 10846.1203200624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Don't bail with legitimate -N/-B options  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: [PATCH] Don't bail with legitimate -N/-B options
Список pgsql-bugs
Magnus Hagander <magnus@hagander.net> writes:
> Those are not comments on the actual patch, of course. For that one, it
> looks to me like it's the wrong fix. I don't think we should be adding
> to shared buffers like that - if somebody asked for a specific value
> they should get that.

Agreed, this is really inappropriate.

The whole test probably needs to be rethought.  I think the idea
was to ensure that you couldn't run out of pinnable buffers if all
backends were concurrently doing UPDATEs that touched two pages.  But
it's an underestimate --- for instance, if the UPDATE is doing an
indexscan then there's likely an index page pinned somewhere as well.
Worse, if you're joining N tables then there's likely N or N*2 pages
pinned at any instant.

Personally what I think we should do is intentionally break the current
Gentoo packaging --- we already unintentionally broke it, but changing
the code that those ridiculous parameter values are accepted again is
NOT the appropriate next step.  I'd be for raising the minimum -B to a
couple hundred.  I'm not sure if we should continue to enforce any
minimum -B-to-N ratio, but if we do, let's make sure that it's measured
without counting the autovac processes, so as to keep the error message
simple.

I think at the time we set the current minimum -B we were still
intending that you could run in a half meg or so SHMMAX allocation.
That's certainly history.  Maybe we should target 2 meg as the rock
bottom minimum?

            regards, tom lane

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [PATCH] Don't bail with legitimate -N/-B options
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCH] Don't bail with legitimate -N/-B options