Re: [PATCH] pg_permissions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] pg_permissions
Дата
Msg-id 1577736.1616764567@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [PATCH] pg_permissions  ("Joel Jacobson" <joel@compiler.org>)
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2021-Mar-26, Joel Jacobson wrote:
>> On Thu, Mar 25, 2021, at 17:51, Tom Lane wrote:
>> I wonder what performance will be like with lots o' objects.

> I guess he is concerned about the number of catalog accesses.

My concern is basically that you're forcing the join between
pg_shdepend and $everything_else to be done as a nested loop.
It will work well, up to where you have so many objects that
it doesn't ... but the planner will have no way to improve it.

Having said that, I don't really see a better way either.
Materializing $everything_else via a UNION ALL seems like
no fun from a maintenance perspective, plus we're not that
great on optimizing such constructs either.

            regards, tom lane



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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: Stronger safeguard for archive recovery not to miss data
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Allow matching whole DN from a client certificate